animations

Guide animation decisions and debugging for Reanimated 4 in React Native apps.

28|1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/bidah/react-native-hifi --skill animations-bidah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: animations
Source: https://github.com/bidah/react-native-hifi/tree/main/skills/software-mansion-best-practices/animations
Command: npx skills add https://github.com/bidah/react-native-hifi --skill animations-bidah

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill captures Software Mansion's animation best practices so that teams do not waste cycles guessing when to use CSS transitions, CSS animations, or shared value worklets while chasing performance on Reanimated 4 under the New Architecture.

Core Features & Use Cases

  • Decision-making framework walks through whether state changes, gestures, or layout reads should map to CSS transitions, CSS animations, or shared value control, and it favors declarative motion whenever possible.
  • Performance and cleanup guidance highlights feature flags, infinite animation cancellation, layout transition helpers, and threading advice that keep Reanimated 4 animations stable, even at 120fps on Fabric.
  • Practical scenario planning a hero motion or list animation now includes text animation tactics, layout animation choices, and the flag recommendations from animations-performance.md to avoid jitter and frame drops.

Quick Start

Ask the animations skill to choose between CSS transitions, shared value motion, or layout transitions for the new screen interaction and outline any performance flags or cleanup steps needed for Reanimated 4.

Frequently Asked Questions about animations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use CSS transitions versus shared value worklets in React Native Reanimated 4?

CSS transitions suit declarative state changes, while shared value worklets handle gestures and continuous interactions. Reanimated 4 favors declarative motion whenever possible to optimize performance on the New Architecture.

How do I prevent frame drops and jitter during layout animations in React Native?

To prevent layout animation jitter, use layout transition helpers, apply recommended performance feature flags, and follow threading advice to keep Reanimated 4 animations stable at 120fps on Fabric.

What's the best way to clean up infinite animations in React Native to avoid memory leaks?

Infinite animation cleanup requires proper cancellation of shared values when components unmount. Reanimated 4 provides specific guidance on feature flags and cancellation steps to maintain animation stability.

Does Reanimated 4 work with the React Native New Architecture and Fabric renderer?

Reanimated 4 targets React Native New Architecture projects specifically, tuning shared values, gestures, and CSS motion across native constraints to maintain stable performance on Fabric at 120fps.

How do I animate text and hero motion in React Native without dropping frames?

Hero and text animations require choosing between CSS animations and shared value control, then applying layout transition helpers and performance flags from Reanimated 4 to avoid frame drops.

Why are my Reanimated shared value animations stuttering on the New Architecture?

Shared value animations stutter due to incorrect threading or missing feature flags. Reanimated 4 debugging targets native constraints, layout reads, and worklet tuning to resolve performance issues on Fabric.