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]: onDismiss doesn't work on web? #2118

Open
GaylordP opened this issue Jan 19, 2025 · 0 comments
Open

[Bug]: onDismiss doesn't work on web? #2118

GaylordP opened this issue Jan 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@GaylordP
Copy link

GaylordP commented Jan 19, 2025

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Web

What happened?

Hello and thank you for your amazing library! 😊

I strongly believe that onDismiss doesn't work on the web; at least in my project, it is triggered on Android and iOS but not on the web.

My packages :

  • "react-native-reanimated": "^3.16.6",
  • "react-native": "0.76.5",
  • "@gorhom/bottom-sheet": "^5.0.6",
  • "react-native-gesture-handler": "^2.21.2",

Reproduction steps

I tried to reproduce the bug on Snack with a very simple example, but as soon as I pass the ref, I get another error 👍

Minified React error #284; visit https://reactjs.org/docs/error-decoder.html?invariant=284 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

But I think it's related to Snack. The issue can easily be reproduced locally.

(In my situation, in my environment, I use BottomSheetModal instead of BottomSheet.)

Reproduction sample

https://snack.expo.dev/tCAMJuRbyYiF8tFL6aE4e?platform=android

Relevant log output

@GaylordP GaylordP added the bug Something isn't working label Jan 19, 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