forked from software-mansion/react-native-reanimated
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Reduced Motion example (software-mansion#6288)
## Summary Previously, animations were defined in the global scope, so if they were run once, they couldn't be run again. I simply replaced static animations with a lambda that creates a new animation every time. | before | after | | --- | --- | | <video src="https://github.com/user-attachments/assets/21de2620-24f2-4d27-8e82-3217ddeab07e" /> | <video src="https://github.com/user-attachments/assets/ac178ce6-c6d5-4cc0-9029-43341b20b278" /> | ## Test plan Run `ReducedMotion` example
- Loading branch information
Showing
1 changed file
with
47 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters