React Native Reanimated animation skill
npx skills add https://github.com/estevg/skills --skill creating-reanimated-animations使用 CLI 安装这个技能,并在你的工作区中直接复用对应的 SKILL.md 工作流。
Agent Skills–compliant skill for React Native Reanimated. Expert guidance for animations: transitions, gestures, scroll-linked effects, layout animations, CSS animations (v4), shared element transitions, worklets, and real-world component patterns.
This skill provides comprehensive guidance for creating performant animations in React Native using Reanimated, including:
# Install from GitHub
npx skills add estevg/skills --skill creating-reanimated-animations
# Or with full URL
npx skills add https://github.com/estevg/skills --skill creating-reanimated-animations
The skill directory is creating-reanimated-animations (Agent Skills spec: name matches folder).
# Add the marketplace
/plugin marketplace add estevg/skills
# Install the plugin
/plugin install creating-reanimated-animations@esteban-skills
~/.cursor/skills/creating-reanimated-animations/ (global).cursor/skills/creating-reanimated-animations/ (project-specific)Once installed, the skill automatically activates when you:
Creating Animations:
"Create a fade in animation with spring effect"
"Implement a parallax scroll header"
"Build a swipeable card with gesture handler"
Layout Animations:
"Add entering/exiting animations to a list"
"Create a layout transition for reordering items"
"Implement a keyframe animation for a loading indicator"
Advanced Patterns:
"Build an accordion component with smooth animations"
"Create a bottom sheet with gesture controls"
"Implement shared element transitions between screens"
creating-reanimated-animations/
├── SKILL.md # Main skill with core patterns
└── references/
├── api-reference.md # Full hook signatures, v3↔v4 differences
├── gesture-patterns.md # Drag, pinch, fling integrations
├── layout-animations.md # Entering/exiting, layout transitions
├── css-animations-detailed.md # CSS animations (v4 only)
├── shared-element-transitions.md # Screen-to-screen animations
├── component-patterns.md # Accordion, bottom sheet, flip card, FAB
├── worklets-advanced.md # Worklets, runOnJS/runOnUI
└── testing-and-properties.md # Jest testing, animatable properties
Every animation follows three steps:
import Animated, {
useSharedValue,
useAnimatedStyle,
withTiming,
} from "react-native-reanimated";
function Component() {
// 1. Create shared value (lives on UI thread)
const offset = useSharedValue(0);
// 2. Bind to style
const animatedStyle = useAnimatedStyle(() => ({
transform: [{ translateX: offset.value }],
}));
// 3. Trigger animation
const handlePress = () => {
offset.value = withTiming(200, { duration: 500 });
};
return <Animated.View style={[styles.box, animatedStyle]} />;
}
| User wants | Function | Key params |
|---|---|---|
| Smooth fixed-duration | withTiming(to, {duration, easing}) |
Default: 300ms |
| Natural bouncy feel | withSpring(to, {mass, damping, stiffness}) |
Default: mass=1 |
| Momentum after fling | withDecay({velocity, clamp}) |
Needs initial velocity |
| Clamp spring range | withClamp({min, max}, withSpring(to)) |
v4: limits overshoot |
| Loop/pulse/shake | withRepeat(anim, reps, reverse) |
reps=0 for infinite |
| Multi-step choreography | withSequence(anim1, anim2, ...) |
Runs in order |
Works with any Agent Skills-compatible tool:
react-native-gesture-handler (for gesture patterns)react-native-worklets (for Reanimated v4)The skill knows when to activate based on context - no need to manually invoke it.
Information is loaded on-demand to keep context efficient:
Automatically detects and adapts to your Reanimated version:
react-native-workletsBased on React Native Reanimated documentation:
Issues and PRs welcome at github.com/estevg/skills
MIT - See LICENSE file for details.
If you find this skill useful, please consider giving it a ⭐ on GitHub!
Made with ❤️ for the React Native community