-
Notifications
You must be signed in to change notification settings - Fork 297
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
Multiple Picker dropdown gets hidden below another Picker component in Android #33
Comments
Hello, Please read zIndex conflicts. |
I am still getting this issue |
anyone can share the sample code please? |
Hello @jaspreetjk If this doesn't help you, You can share your own code snippet with the |
@hossein-zare Your snippet, modified to show the bug. |
<View
style={{
... // No backgroundColor
...(Platform.OS !== 'android' && {
zIndex: 20
})
}}
>
<DropDownPicker ... />
</View>
<View
style={{
... // No backgroundColor
...(Platform.OS !== 'android' && {
zIndex: 10
})
}}
>
<DropDownPicker ... />
</View> |
Ah my bad, I saw the thing about the background color but missed the increasing zIndex. From reading some other issue report, not being able to use background color is a React Native issue, correct? |
Yes, There are some other properties that cause unexpected behaviors. |
Hi Hoseein I have integrated the Dropdown picker in the flatlist so it is rendering it multiple times. In the android the dropdown overalps with the rest of the content which is not dropdown. I have added all the zindex and others which are laid in the REadme. Can you help |
hi @hossein-zare, I see how zIndex works for multiple pickers at this page - https://hossein-zare.github.io/react-native-dropdown-picker-website/docs/tutorials/multiple-pickers |
Describe the bug
A clear and concise description of what the bug is.
When the dropdown is opened. It gets behind another picker component below it.
To Reproduce
Steps to reproduce the behavior:
Create an expo snack:
https://snack.expo.io/
Expected behavior
A clear and concise description of what you expected to happen.
the visible dropdown should override every other component
Screenshots
If applicable, add screenshots to help explain your problem.
Supposed to work like this in both platforms
iOS screenshot
Works like this in Android which is an issue
Info (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: