-
-
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
[v5-alpha] Web - animatedIndex changes by itself and causes the BottomSheet to open up on navigating back to it #1910
Comments
Here is a diff that fixed the issue:
The |
Screen.Recording.2024-08-31.at.18.41.43.movtested your provided package, and i do not see the bottom sheet snapping .. but i noticed that you were using v4 instead of v5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
On web, when your BottomSheet did render, and then you navigated away from it, the _animatedContainerHeight property is set to 0. It causes animatedIndex variable to be 0 - and so, when you navigate back to the screen with the BottomSheet, it opens up immediately.
Environment info
Steps To Reproduce
Reproducible sample code
Here is a demo repo:
https://github.com/5ZYSZ3K/bottom-sheet-web-issue-demo
On web, navigate away from the screen with BottomSheet, and then back to it - it will pop up immediately
The text was updated successfully, but these errors were encountered: