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
Higher-order animations are a powerful concept in Reanimated v2. Here is an example.
defineAnimation()
defineAnimation()
This utility function enables you to declare custom animations that can be invoked on both the JS and UI thread.
animationParameter(animation)
animationParameter(animation)
Access animations passed as parameters safely on both the UI and JS thread with the proper static types. Animations can receive other animations as parameter.
withPause()
withPause()
Make an animation pausable. The state of the animation (paused or not) is controlled by a boolean shared value.
withBouncing()
withBouncing()
Add a bouncing behavior to a physics-based animation. An animation is defined as being physics-based if it contains a velocity in its state.
Last updated