-
-
Notifications
You must be signed in to change notification settings - Fork 786
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
BottomSheetModal crashes app when closed with Back Button #465
Comments
I facing like this issue but in my case the error is
When i click device back button on android How can i resolve this? |
@gorhom it would be amazing if you could give a quick feedback on this topic. Did we perhaps miss something out? |
@kingdark1234 @alexco2 i will look into this issue later today 👍 |
meanwhile, @alexco2 could you try to reproduce it with yarn add @gorhom/[email protected] |
@gorhom thank you! |
@alexco2 i have tried your snack and i did not managed to reproduce it 😩 am i doing something wrong here ? screencap-2021-06-10T181851.011Z.mp4 |
That is really weird. For me I was able to reproduce it directly. My steps are:
Perhaps you have to try it more "aggressively"? Screen_Recording_20210610-202920_Expo.Go.mp4 |
@gorhom |
i have tested with different navigation gesture but i couldn't reproduce it either |
How can I help you further to reproduce the bug? |
@alexco2 thanks for helping so far, i would appreciate if you could test |
@gorhom I tried to reproduce the error in the snack you provided https://snack.expo.io/@gorhom/portal-example, but was not able to. Do you think the bug is in the react-native-portal library? @kingdark1234 could you try to reproduce the error in the snack I provided? (https://snack.expo.io/@expoco2/bottomsheet-bug-repro) |
Not sure if my input is valuable, but I constantly experiencing this issue.
|
@RohovDmytro can you reporoduce the error in the snack? https://snack.expo.io/@expoco2/bottomsheet-bug-repro |
@alexco2 Hi alexco sorry for late reply I have solved my issue by using |
Hello @kingdark1234, I tried your suggestion like the following. Both calling
|
@alexco2 Edit: my solution does not fix it. In my case i try to reproduce and i found my issue when i open the bottomSheet and don't scroll down to load more data then goBack everything is work well, but when I open bottomSheet and scrolldown to load more when load data success then goback I found this issue but. I think maybe something wrong in my code when handle load more data. |
@gorhom |
Bug
Hello, I came across a Bug while working with the Backbutton and
BottomSheetModal
. When theBottomSheetModal
ist open and extended, and the user navigates back to the previous screen with the Back Button, while the Modal is extended, theBottomSheetModal
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,
andMaximum call stack size exceeded (native stack depth).h
. Also, look here: https://github.com/gorhom/react-native-portal/issues/15#issuecomment-850577091Environment info
Steps To Reproduce
Describe what you expected to happen:
Reproducible sample code
I was able to reproduce the bug in Expo Snack. Here is the Link: Expo Snack Reproductible Sample Code
BottomSheetModal.Bug.mp4
The text was updated successfully, but these errors were encountered: