react-native-bottom-sheet: [Bug]: The BottomSheetModal is not even opening at all
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
iOS, Android
What happened?
After upgrading to Expo 51 with React Native 0.74.5, my BottomSheet component stopped working and it cannot even open. I’ve reviewed my code and checked the documentation, but I haven’t found any errors or issues to indicate what’s wrong.
The BottomSheet is essential to my app, and I can’t downgrade since it now relies on react-native-reanimated v3, which is also a dependency for many of my other libraries used in the app.
Reproduction steps
- I was running Expo-50
- Then I upgraded to Expo-51
- Then the BottomSheet stopped working
Reproduction sample
https://snack.expo.dev/@gorhom/bottom-sheet---issue-reproduction-template?platform=ios
Relevant log output
I cannot reproduce anything because it's not showing any kind of error
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 15 (2 by maintainers)
Just had same problem, also after adding BottomSheetView BottomSheetScrollView my snapPoints got messed up, some further investigation and found that setting enableDynamicSizing={false} fixed the issue without the need to add additional wrapper views.
Same on version 5.0.5. Happens when there is a props combination of
enableDynamicSize+BottomSheetScrollView. but it was working perfectly fine until I updated to react-native 0.76.1 For example this modal shows up:This one does not:
This one does not either:
But if we place a BottomSheetView inside of BottomSheetScrollView, it seems to be working:
it should be fixed in the latest release , thanks for reporting
I can also confirm this issue. We are using just a normal view in the bottom sheet. This also does not work. I made a test component below. For a little more context. We are using the normal react modal when screen reader is active. Therefore the content cant be a BottomSheetView and has to be a view instead. Its crusial that normal components work in the BottomSheet.
I’m also having the same issues and I’m also not getting any error messages; Please let me know if any solutions