Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scroll not working #252

Open
sam9010 opened this issue Dec 24, 2022 · 2 comments
Open

scroll not working #252

sam9010 opened this issue Dec 24, 2022 · 2 comments

Comments

@sam9010
Copy link

sam9010 commented Dec 24, 2022

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
Copy link

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.

@jmd005-vendeesh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants