Replies: 1 comment
|
i don’t know if this works, but did you try setting it to false when the state updates? |
0 replies
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.
How to turn an animation with 'loop: true' on and off?
<MotiView
from={{
rotation: isEditMode ? -2 : 0,
}}
animate={{
rotation: isEditMode ? 2 : 0,
}}
transition={{
loop: true,
type: 'timing',
duration: 200,
}}>
I want to stop the loop in a specific situation and start it again.
All reactions