withRepeat
not working with withDecay
#6757
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
Using
withRepeat
withwithDecay
doesn't work. I usewithDecay
to create a bouncing ball effect. But wrapping it withwithRepeat
doesn't make the animation repeatSimulator.Screen.Recording.-.iPhone.16.Pro.-.2024-11-25.at.12.07.07.mp4
With repeat expects an animation object (docs), and
withDecay
returns an animation object (docs), so I think this should work.I should mention that if I run the animation before the previous one ends, the repeat does seem to kind of work
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-11-25.at.12.11.36.mp4
Steps to reproduce
withDecay
wrapped withwithRepeat
:(please see the provided snack)
Snack or a link to a repository
https://snack.expo.dev/s_qw5YUp3xjzXDdDXKX5A
Reanimated version
3.16.1
React Native version
0.76.2
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
Fabric (New Architecture)
Build type
None
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: