RN animations & gestures · Concept
Animated vs Reanimated, and what useNativeDriver really does
Practise this out loud
Say your answer out loud to an AI interviewer that follows up, and get a score for it.
Practise by voiceThe interviewer asks
Why does useNativeDriver: true make an animation smoother? Why couldn't you animate width with it, and what changed in 0.85?
Then
Follow-ups the interviewer asks next
- "When would you still pick Animated?"
- "Why does Reanimated produce smoother gesture-driven animations?"
- "What is the Shared Animation Backend?"
The answer
What a strong answer covers
- With the native driver, the animation graph is serialized once and runs on the UI thread, so JS stalls don't drop frames.
- Historically the native driver was limited to non-layout props (transform, opacity).
- 0.85 added an experimental Shared Animation Backend (with Software Mansion) that powers both Animated and Reanimated. It lets Animated drive layout props natively, from 0.85.1 on the experimental channel.
- Reanimated runs arbitrary JS (worklets) on the UI thread, which is great for gesture- and scroll-driven animation.
- Use
LayoutAnimationfor fire-and-forget layout changes.
The red pen
Common traps
Avoid:"useNativeDriver works for every style". Animating image width/height instead of transform: scale.
Practise this out loud
Say your answer out loud to an AI interviewer that follows up, and get a score for it.
Practise by voicePractise questions like this out loud
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.