react-native-autocomplete-input
react-native-autocomplete-input copied to clipboard
scroll not working
my sample code is:
<View style={{flex:1}}><View style={{ flex: 0.6, width: '100%', zIndex: 10, }}><Autocomplete ...></View> <View style={{ flex: 0.4, zIndex: 1, }}><Button></Button></View></View>
when add second View (View style={{ flex: 0.4,...), scroll my Autocomplete not working why? when I remove second View is ok, Indead when put eleman bottom my Autocomplete my scroll not working
Add scrollEnabled={hide || query === ''} also you need to wrap your Autocomplete component with relative position view with height say e.g., 100 then the component beneath that should be give margin negative say -90 and this will work.
Try this plugin https://www.npmjs.com/package/react-native-select-dropdown-search