Animated Component

Also called Animated.View, Animated API

Updated

What is Animated Component in React Native?

An animated component is a React Native view whose style values are driven by an animation library — Reanimated or the built-in Animated API — rather than by plain state.

component treerenders 0Animated.Viewnative driver
The animated viewComponent that re-rendersBound to the animated valueAn animated component is a view whose style an animation library drives frame by frame, instead of state. Animating with useState re-renders the tree on every frame and stalls whenever JavaScript is busy. The built-in Animated API renders Animated.View and, with useNativeDriver: true, hands the animation to the native side; Reanimated runs it as a worklet on the UI thread. Either way the tree does not re-render and the motion survives a busy JavaScript thread.

An animated component is a view whose styles are driven frame by frame by an animation library instead of by ordinary re-renders. Animating through useState would re-render the tree on every frame, so React Native provides purpose-built wrappers.

There are two options, and newcomers should know which they are reading about:

  • The built-in Animated API ships with React Native. You animate Animated.Value objects and render Animated.View, Animated.Text, and friends. With useNativeDriver: true the animation is handed to the native side so it keeps running when JavaScript is busy.
  • Reanimated is the community standard for anything non-trivial. It runs animation logic as worklets directly on the UI thread, so gestures and scroll-linked effects stay smooth.

The failure mode to recognise: an animation that stutters only in release-mode-with-work-happening usually means it is running on the JavaScript thread rather than natively.