feat: filter functionality on Home screen

Long press on any day to remove filter
This commit is contained in:
Jakob Stornig 2024-01-20 17:01:08 +01:00
parent 1beee68bff
commit bc3d243ffc
3 changed files with 107 additions and 37 deletions

View file

@ -45,7 +45,9 @@ export default function TextInputBar(props: SearchBarProps) {
<TextInput placeholderTextColor={colors.secondaryText} onChangeText = {handleChange} style={[{fontSize: SIZES.normal, height: "100%", color:colors.primaryText}, styles.TextInput]} autoCorrect={false} keyboardType='default' placeholder={props.placeholder} value={props.value} onEndEditing={()=>setIsactive(false)}/>
{isActive &&
<TouchableOpacity style={styles.cancel} onPress={()=>{handleChange("")}}>
<TouchableOpacity style={styles.cancel} onPress={()=>{
console.log("cancel")
handleChange("")}}>
<AntDesign size={15} name='closecircle' color={colors.primaryText}></AntDesign>
</TouchableOpacity>
}