-
Notifications
You must be signed in to change notification settings - Fork 133
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
Opacity transition on animated state on react-native-web #96
Comments
I believe this is the known issue documented here: https://moti.fyi/web#spring-animations |
@nandorojo thanks! Tested and this works. The |
Yeah, seems like RNW + Reanimated have this issue in general :/ I think if you force install RNW 0.15.3 it might be fixed. |
@nandorojo yes, the force install to RNW 0.15.3 worked. No longer need overshootClamping or adjusting the type, thanks for the help! |
Sounds good, maybe we can add that to the docs |
Just made a fork to add to docs, although as I updated to the latest RNW version ( |
Yeah see the issue I linked to. RNW reverted it back, which is why the force install is needed. Or you could patch the change, it’s a one liner. |
I am running into an issue with opacity on react-native-web, starting with this example:
https://github.com/expo/examples/tree/master/with-moti
...and then swapping the code from the animate presence on the docs example page.
I altered the from / exit to see what value it was landing on when animated in view should be opacity & scale = 1, but it looks like the opacity state is being set back to the 0.001 value in the from state.
See video of my encounter on react-native-web: https://www.loom.com/share/56d4029cbbb64bcaab21dcdfccd095c5
I also tried the
useAnimationState
fix with no luck there either. The above code works fine on iOS with expo go.New issue request reference comment:
#85 (comment)
Originally posted by @bennettfrazier in #85 (comment)
The text was updated successfully, but these errors were encountered: