Open dislersd opened 3 years ago
Updating local state through onChangeText, clears the input anytime I type.
const [item, setItem] = useState("") <Autocomplete key={uuidv4()} inputStyle={styles.inputContainer} placeholder="building" onChangeText={text => setItem(text)} // <-- This is not working handleSelectItem={(item, id) => console.log(item, id)} data={items} minimumCharactersCount={2} valueExtractor={item => item} />
onChangeText={(text) => setItem(text)} change to this
Updating local state through onChangeText, clears the input anytime I type.