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

[v4] [Android] [BottomSheetModal] Modal is not opening on Android, works on iOS #1925

Closed
bwees opened this issue Aug 28, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@bwees
Copy link

bwees commented Aug 28, 2024

Bug

We see an odd bug when trying to get our app ready for an Android release. We are using BottomSheetModal and we have a useEffect to open the sheet when the app first loads. This technique works fine when on iOS but when we are on Android, they do not present. This happens in Expo Go as well as a release build. Our app is 100% open source and can be downloaded at: https://github.com/Maroon-Rides/MaroonRides. This issue also appears when trying to trigger a sheet open with a button, the sheet simply does not show and no errors are printed in console.

Here's some photos of expected vs actual behavior

Expected:
image

Actual:
image

Environment info

Library Version
@gorhom/bottom-sheet 4.6.4
react-native 0.74.3
react-native-reanimated 3.10.1
react-native-gesture-handler 2.16.1

Steps To Reproduce

  1. Clone the https://github.com/Maroon-Rides/MaroonRides repo
  2. Install dependencies and open with Expo Go on Android or other method
  3. Map will load but bottom sheet modal will not appear

Describe what you expected to happen:

  1. Bottom sheet modal appears like it does on iOS

Reproducible sample code

https://github.com/Maroon-Rides/MaroonRides

@bwees bwees added the bug Something isn't working label Aug 28, 2024
@bwees
Copy link
Author

bwees commented Sep 1, 2024

This appears to have been caused by a zIndex being set on the map component.

@bwees bwees closed this as completed Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant