BottomSheetModal crashes app when closed with Back Button
See original GitHub issueBug
Hello, I came across a Bug while working with the Backbutton and BottomSheetModal
. When the BottomSheetModal
ist open and extended, and the user navigates back to the previous screen with the Back Button, while the Modal is extended, the BottomSheetModal
can not be opened again after navigation back to the second screen.
In porduction mode, I get the error Cannot read property 'minimize' of null,
and Maximum call stack size exceeded (native stack depth).h
. Also, look here: https://github.com/gorhom/react-native-portal/issues/15#issuecomment-850577091
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | ^3.6.5 && 4.0.0-alpha.11 |
react-native | 0.63 |
react-native-reanimated | ^2.1.0 |
react-native-gesture-handler | ~1.10.2 |
Steps To Reproduce
Describe what you expected to happen:
- The Modal should be able to open itself again.
- No crashes
Reproducible sample code
I was able to reproduce the bug in Expo Snack. Here is the Link: Expo Snack Reproductible Sample Code
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (5 by maintainers)
Top Results From Across the Web
Bottom Sheet doesn't close when navigating to different screen
There are few ways to do it. Here are two: Add useFocusEffect that runs when your screen with BottomSheetModal is unfocused:.
Read more >How to Fix App Not Close When Press Back Button in Android
Some app will not close properly when you press back button in android devices, it will run in background and slow down your...
Read more >Changelog | ArcGIS Hub
Once new content is uploaded, the three buttons that appear ("View Content," "Return to Content Library," and "Open in ArcGIS Online") now use...
Read more >A React Native Bottom Sheet with Fully Configurable Options
A performant interactive bottom sheet with fully configurable options A React Native Bottom Sheet with Fully Configurable Options.
Read more >August | 2018 | SAP Fiori for Android Design Guidelines
The filter dialog is triggered by tapping on the filter icon on the app bar. ... Replace the “close” icon with the “back”...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have this issue on
v2.4.1
. Is there any solution to fix the issue in this version? @gorhom @alexco2I was able to reproduce the error in dev mode with the latest version alpa 11. Most of the time, after using the back button when the Bottom Sheet modal is open, the Sheet can not be opened again. Sometimes I also get this error.