Documentation
For more information about this library and its API, see https://docs.swmansion.com/react-native-reanimated/ in the official Software Mansion documentation.Installation
Select the tab for your React Native version. Note that RN 0.83 requires the additional@amazon-devices/react-native-worklets dependency, which provides the core multithreading infrastructure that enables worklets — JavaScript functions that can be executed on separate threads (like the UI thread). Worklets are the foundation that allows Reanimated to run animations and interactions smoothly without blocking the JavaScript thread.
- Add the JavaScript library dependency in the package.json file:
- React Native 0.72
- React Native 0.83
-
Add the Reanimated Babel plugin to your babel.config.js:
-
Run the following command to clear the Metro bundler cache:
-
Reinstall the package-lock.json file by running the
npm installcommand.
Examples
The following example shows how to run a simple animation in an infinite loop using thewithTiming method.
withSpring function:
API support
The reanimated library on Vega provides a Turbo Module which adds a support for most of methods listed below.Animations
Core
Scroll
Device
Threading
workletize
Workletize means to convert a JavaScript function into a serializable object which can be copied and ran on a UI thread. Functions are marked with “worklet”. Directives are automatically picked up and workletized by the Reanimated Babel plugin.Utilities
Advanced APIs
Exceptions
The reanimated library on Vega has a few exceptions in terms of API support. Vega doesn’t support the following hooks and methods:useAnimatedSensoruseAnimatedKeyboarduseReducedMotionLayout Animationson Fabric
CSS TransitionsCSS Animations
SETs (Shared Element Transitions)
Known Issues on Vega
- Animations that use
withRepeatstop repeating after fast refresh is used. - Style does not update on the animation after fast refresh is used.

