-
-
Notifications
You must be signed in to change notification settings - Fork 771
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] | Rerendering screen prevents modal to be redisplayed #697
Comments
+1 |
working on fixing this |
this should be fixed with |
Thanks a lot @gorhom , you rock man |
Still happens in v4.1.5 |
This is still occuring |
This is still occurring in v4.1.5 |
I was able to fix this issue with the following code:
Basically, I stored in a ref the value that needs to be updated and, then, delayed the |
I have something that sounds like the same problem. I've found that it's seems to be the opacity which is set to 0 from the fix here: #690 (comment) (I can still press on element and fire listeners for that) |
Seems like we're still having this problem on
|
But only on iOS |
The strange thing is, if we add a console.log to handleSheetChanges it opens but without animation 🤯
|
Bug
BottomSheetModal cannot be shown after performing state update on the screen. It is working fine if there is no state update, thus no rendering, but once the screen is rerendered the modal cannot be shown after dismissed/closed.
When there is no state update, the sheet modal is working fine:
But once we add state update, the sheet modal cannot be displayed:
Environment info
Steps To Reproduce
BottomSheetModal
Describe what you expected to happen:
Reproducible sample code
I have created a snack for the code to demonstrate the bug, but somehow it won't run in expo, I am not very familiar with it. If line 39 and 42 (update state code) are commented out, everything works fine.
https://snack.expo.dev/@nastarfan/bottom-sheet-v4-reproducible-issue-template
This issue only presents for
BottomSheetModal
.BottomSheet
works fineThe text was updated successfully, but these errors were encountered: