Replies: 1 comment
-
i don’t know if this works, but did you try setting it to false when the state updates? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions