react-native-autocomplete-input
react-native-autocomplete-input copied to clipboard
OnBlur
if i am adding the on blur props to close suggestion list, then it's not retuning the selected item it means autocomplete not working on select from suggestion list because the onblur called firstly instead of call the listitem of onPress function.
Try this plugin https://www.npmjs.com/package/react-native-select-dropdown-search
I was having similar issue. The onPress handler on list item didn't get called. I've solved it by adding keyboardShouldPersistTaps: 'handled' to flatListProps.
flatListProps={{
renderItem: /*render item code*/,
keyboardShouldPersistTaps: 'handled'
}}