byteburgers / react-native-autocomplete-input

Pure javascript autocomplete input for react-native
https://byteburgers.com/autocomplete
MIT License
805 stars 255 forks source link

scroll not working #252

Open sam9010 opened 1 year ago

sam9010 commented 1 year ago

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

ravis-farooq commented 1 year ago

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.

vendeeshwaranc commented 1 year ago

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