-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On press does not change the text input #24
Comments
hi, I also have the same issue as @Talkwondo described above. I tried in iOS and Android devices and result is the same. I also tried different versions of react-native-autocomplete-input (2.0.0 and 1.1.2) and still see the issue. ReactNative version: 0.35.0.
any ideas? |
Strange.. Does it work with the example? |
unfortunately your example does not work for me (tried on real Android device and on iOS simulator) |
hi @l-urence, As the title of issue: 'On press does not change the text input', I had the same behavior, but it could be solved by customizing component: use states for text input (defaultValue property) and key (autocompleteUpdateableKey: Math.random())
|
@vasiliy-sarzhynskyi cool then I will close this. |
Hi,
After the autocomplete find the element, when I select it this does not show in the text input.
does anyone can understand what's happening?
<Autocomplete
data={notEatitems.length === 1 && comp(query, notEatitems[0]) ? [] : notEatitems}
defaultValue={query}
keyboardShouldPersistTaps={true}
onChangeText={text => this.setState({query: text})}
renderItem={data => (
<TouchableOpacity onPress={() =>
this.setState({query: data})}>
{data}
)}
/>
The text was updated successfully, but these errors were encountered: