I am trying to add these 2 Functions in one. I am new to react-native. As in code, I tried but only the first one is working.
My question is How I can use setSearch and animation together in the onChangetext function?
<TextInput
style={styles.searchbox}
onChangeText={(text) => {
setSearch(text)
scaleValue.setValue(1)
Animated.timing(scaleValue,{
toValue:0.5,
duration:100,
easing: Easing.linear,
useNativeDriver:true
}).start();
}}/>
