maxkordiyak / react-native-dropdown-autocomplete

Autocomplete input with dropdown modal component for React native. Useful for pages with multiple autocomplete's.
MIT License
100 stars 51 forks source link

handleItemSelect prop doesn't get called in Android #43

Open rahombus97 opened 4 years ago

rahombus97 commented 4 years ago

Working fine in iOS but the function I pass into the handleItemSelect prop doesn't get evoked

handleSelectItem={(item, id) => this._handleSelectItem(item, id)}

niranjan233 commented 4 years ago

This is because of the animations happening that the buttons will not be clickable in android . better to use by rn-gesture-handler in the dropDown item component. That will fix it

rahombus97 commented 4 years ago

Is that a feature in this node package? Or what do you mean by "rn-gesture-handler"?

niranjan233 commented 4 years ago

Go into the package in node_modules and change the <Button component (import from 'react-native') in the dropdownItem.js file into a <TouchableOpacity ( import from 'react-native-gesture-handler')