Closed ericm999 closed 4 years ago
I solve this problem by making autocomplete position absolute.
@sostenesg7 Can you suggest how and where you set position 'absolute' ?
I do not have my old code any more, i completely changed this component to work for me. But i remember code that i put is only:
styles={{
listView:{
position: 'absolute',
backgroundColor: '#FFF',
zIndex: 10,//Forcing it to front
}
}}
Hi, Does work this for anyone? I can't touch any row from listView that overflow component view on android. any ideas to fix?
The absolute position works, but weirdly it looks like this
The background, given is a solid color, still it's not fully opaque. Plus when i try to click on the first or second element, the textbox behind it gets in focus.
@ws7one I solved that by adding
container: { width: '100%', zIndex: 1, },
I want to add that in some cases the list gets in the way of the input, you can
import { heightPercentageToDP as hp, } from 'react-native-responsive-screen'; //to keep it responsive
listView: { position: 'absolute', backgroundColor: '#FFF', zIndex: 10, marginTop: hp('8%') },
And sometimes if your font is a little bigger you need to give each row more height, so you could do:
row: { minHeight: hp('9%'), },
First of all thanks for making this wrapper around the places api. I have an issue here where i have another component below the autocomplete search box. I simply want to elevate the list view.I already tried playing with position, zindex, elevation and overflow, but instead of elevating it is showing below the component
Thanks for an answer