Exploring Reanimated 2 – the most complete animation solution for React Native
Reanimated is by far the most complete and mature animation solution for React Native. It was an improved reimplementation of the React Native Animated API in the first place, but with version 2, the API changed and the library’s capabilities increased greatly.
This section covers the following topics:
- Getting to know the Reanimated API with a simple example
- Understanding the architecture of Reanimated 2
- Understanding the pros and cons of Reanimated
Let’s get started.
Getting to know the Reanimated API with a simple example
Essentially, the core concept of Reanimated 2 is as simple as the Animated API. There are animation values that can be changed, and these animation values power the animations.
The following code shows an animation that scales in a View
component:
import React from "react"; import { Text, Pressable } from "react...