feat: filter functionality on Home screen
Long press on any day to remove filter
This commit is contained in:
parent
1beee68bff
commit
bc3d243ffc
3 changed files with 107 additions and 37 deletions
|
|
@ -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>
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue