react-native-reanimated provides an API that greatly simplifies the process of creating smooth, powerful, and maintainable animations. From the project's README:
It provides a more comprehensive, low level abstraction for the Animated library API to be built on top of and hence allow for much greater flexibility especially when it comes to gesture based interactions.
The second major version of this library offers a much easier API, along with significantly improved performance characteristics. It uses React Native APIs that are incompatible with Remote Debugging JS.
If you want to play with v2-rc in a new project before adding it to an existing project, run npx crna --template with-reanimated2 to create a project with it configured and ready to use.
You also need to install the library directly with npm or yarn rather than using expo install because we still default to installing the stable react-native-reanimated v1.
# This exact version is supported:
npm install email@example.com
Finally, you'll need to add the babel plugin to babel.config.js: