Animations
Animations in Reanimated v2 have powerful composability built-in. The following are functions TypeScript types that will help you to build custom animations.
Higher-order Animations
defineAnimation()
defineAnimation()const withCustomAnimation = () => {
"worklet";
return defineAnimation(() => {
"worklet";
// ...animation code
return {
animation,
start
}
});
}animationParameter(animation)
animationParameter(animation)withPause()
withPause()withBouncing()
withBouncing()Last updated