react-native-autocomplete-input icon indicating copy to clipboard operation
react-native-autocomplete-input copied to clipboard

OnBlur

Open ASPatelG opened this issue 2 years ago • 2 comments

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.

ASPatelG avatar Mar 15 '23 03:03 ASPatelG

Try this plugin https://www.npmjs.com/package/react-native-select-dropdown-search

vendeeshwaranc avatar May 10 '23 06:05 vendeeshwaranc

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'
}}

alvani avatar Aug 12 '23 14:08 alvani