Skip to content
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

[Bug]: Strange disappearance animation when changing content of dynamic bottom sheet #2169

Open
yolpsoftware opened this issue Feb 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@yolpsoftware
Copy link

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS

What happened?

There is a strange case of the bottom-sheet suddenly animating back to the bottom without any explicit trigger for it.

Image

As you can see, the bottom sheet animates to the bottom, just because the size of the contents have changed (sometimes the top border keeps where it is, but the bottom border is animated to the top until the bottom sheet is no longer visible).

What triggers this behavior seems to be the following combination:

  • enableDynamicSizing={true}
  • a positive marginTop on the BottomSheetView
  • a change in the contents of the bottom sheet

Note: the provided Snack does not run for some reason that I don't understand but have already reported. Just paste the whole App.tsx into a local project and run it from there.

Note that the problem disappears if you remove the marginTop on line 25.

Reproduction steps

Reproduction sample

https://snack.expo.dev/@yolpsoftware/reproduction-for-strange-bottom-sheet-disappearance-animation

Relevant log output

@yolpsoftware yolpsoftware added the bug Something isn't working label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant