How to pause animations in v2 from useEffect? (cancelAnimation does not work) #3272
Unanswered
andrewdang17
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have a box that I want to be able to move from one end of the screen to the other end based on a hook that returns a value, which I then use in
useEffect
. My initial thought was to usecancelAnimation
but that does not seem to do anything even though it's using the sharedValue that is being used for thewithTiming
function. Any idea on how to get this to work?Beta Was this translation helpful? Give feedback.
All reactions