react-native
Skill7 starsChanged 10 months agoMITView on GitHub
React Native animation using Animated API and Reanimated 3. Use when building cross-platform mobile apps requiring smooth, gesture-driven animations with native performance.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- vercel-labs/json-rendertheir own version, first seen Oct 29, 2026
- kitloomlk-stack/mobile-apps-kittheir own version, first seen Oct 15, 2026
- DongDuong2001/pudo-code-systemtheir own version, first seen Oct 13, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
- astashov/liftosaurtheir own version, first seen Oct 8, 2026
Used with
Projects with it also use firebase, flutter and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xfstudioSkillfirebase
Firebase gives you a complete backend in minutes - auth, database, storage, functions, hosting. But the ease of setup hides real complexity. Security rules are your last line of defense, and they're often wrong. Firestore queries are limited, and you learn this after you've designed your data model. This skill covers Firebase Authentication, Firestore, Realtime Database, Cloud Functions, Cloud Storage, and Firebase Hosting. Key insight: Firebase is optimized for read-heavy, denormalized data. I
Also in 4 projects that use this
ffsshhttiikkSkillflutter
Flutter cross-platform framework
Also in 4 projects that use this
travisjneumanSkillagent-teams
Team composition knowledge for Claude Code Agent Teams - when teams fit, optimal sizing, spawn prompt patterns. Use only when the user has explicitly enabled agent teams for the session.
Also in 3 projects that use this
OpenAISkillsupabase
Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector).
Also in 3 projects that use this
0xSeroSkillsecurity
Also in 4 projects that use this
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- vercel-labs/json-render★ 19ksame name
- astashov/liftosaur★ 775same name
- alinaqi/maggy★ 711same name
- alinaqi/claude-bootstrap★ 708same name
- travisjneuman/.claude★ 106same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- s-hiraoku/synapse-a2a★ 17same name
- G1Joshi/Agent-Skills★ 15same name
- DongDuong2001/pudo-code-system★ 5same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository87 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- motion-designSkill
- 3d-transformsSkill
- accessibilitySkill
- android-nativeSkill
- animation-recipesSkill
- anticipationSkill
- arc-motionSkill
- attention-choreographySkill
- attentionSkill
- audio-reactiveSkill
- blurSkill
- brand-animationSkill
- cameraSkill
- characterSkill
- choice-resolutionSkill
- cinematicSkill
- code-generationSkill
- colorSkill
- component-animationsSkill
- compositingSkill
- consequenceSkill
- container-transformSkill
- css-advancedSkill
- data-visualizationSkill
- depthSkill
- distortionSkill
- dramaturgySkill
- durationSkill
- easingSkill
- emotional-journeySkill
- emotion-mappingSkill
- emotion-selectionSkill
- empty-statesSkill
- entrance-patternsSkill
- exaggerationSkill
- exit-patternsSkill
- exportSkill
- figma-integrationSkill
- follow-throughSkill
- frame-timingSkill
- gesture-motionSkill
- glow-shadowSkill
- intentSkill
- ios-nativeSkill
- loading-statesSkill
- loopingSkill
- lottieSkill
- masksSkill
- microstateSkill
- morphingSkill
- motion-auditSkill
- motion-blurSkill
- motion-principlesSkill
- motion-specsSkill
- narrative-arcSkill
- notificationsSkill
- onboardingSkill
- opacitySkill
- orchestratorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 316
Always use
useNativeDriver: true: when possible - Distinctive: line 319
Reanimated worklets: run on UI thread
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React Native Animation
Cross-platform mobile animation with native performance.
API Selection
| API | Use Case | Performance |
| Animated | Simple animations, transforms | Good (native driver) |
| Reanimated 3 | Gesture-driven, complex | Excellent (worklets) |
| LayoutAnimation | Layout changes | Good (auto) |
| Moti | Declarative (Reanimated wrapper) | Excellent |
Animated API
Basic Animation
import { Animated } from 'react-native';
const fadeAnim = useRef(new Animated.Value(0)).current;
// Fade in
Animated.timing(fadeAnim, {
toValue: 1,
duration: 300,
easing: Easing.out(Easing.cubic),
useNativeDriver: true // Always use when possible
}).start();
// Apply
<Animated.View style={{ opacity: fadeAnim }}>
<Content />
</Animated.View>M3-Aligned Easing
import { Easing } from 'react-native';
const M3Easing = {
// Standard
standard: Easing.bezier(0.2, 0, 0, 1),
// Emphasized-decelerate (entrance)
emphasizedDecelerate: Easing.bezier(0.05, 0.7, 0.1, 1),
// Emphasized-accelerate (exit)
emphasizedAccelerate: Easing.bezier(0.3, 0, 0.8, 0.15),
// Standard-decelerate
standardDecelerate: Easing.bezier(0, 0, 0, 1)
};Spring Animation
Animated.spring(scaleAnim, {
toValue: 1,
tension: 100, // Stiffness equivalent
friction: 10, // Damping equivalent
useNativeDriver: true
}).start();
// M3-aligned springs
const M3Springs = {
fast: { tension: 400, friction: 20 }, // Small elements
default: { tension: 200, friction: 18 }, // Standard UI
slow: { tension: 100, friction: 15 } // Large elements
};Parallel & Sequence
// Parallel (simultaneous)
Animated.parallel([
Animated.timing(opacity, { toValue: 1, duration: 300, useNativeDriver: true }),
Animated.timing(translateY, { toValue: 0, duration: 300, useNativeDriver: true })
]).start();
// Sequence (one after another)
Animated.sequence([
Animated.timing(scale, { toValue: 0.95, duration: 100, useNativeDriver: true }),
Animated.spring(scale, { toValue: 1, ...M3Springs.fast, useNativeDriver: true })
]).start();
// Stagger
Animated.stagger(50, items.map((_, i) =>
Animated.timing(anims[i], { toValue: 1, duration: 300, useNativeDriver: true })
)).start();Reanimated 3
Basic Usage
import Animated, {
useSharedValue,
useAnimatedStyle,
withSpring,
withTiming
} from 'react-native-reanimated';
function AnimatedBox() {
const scale = useSharedValue(1);
const animatedStyle = useAnimatedStyle(() => ({
transform: [{ scale: scale.value }]
}));
const onPress = () => {
scale.value = withSpring(1.2, {
damping: 15,
stiffness: 150
});
};
return (
<Animated.View style={[styles.box, animatedStyle]} />
);
}M3 Springs (Reanimated)
import { withSpring } from 'react-native-reanimated';
const m3Spring = {
fast: {
spatial: { damping: 20, stiffness: 400 },
effects: { damping: 25, stiffness: 600 }
},
default: {
spatial: { damping: 15, stiffness: 200 },
effects: { damping: 20, stiffness: 400 }
},
slow: {
spatial: { damping: 12, stiffness: 100 },
effects: { damping: 15, stiffness: 200 }
}
};
// Usage
scale.value = withSpring(1, m3Spring.default.spatial);
opacity.value = withSpring(1, m3Spring.default.effects);Gesture Integration
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
import Animated, {
useSharedValue,
useAnimatedStyle,
withSpring,
runOnJS
} from 'react-native-reanimated';
function SwipeCard() {
const translateX = useSharedValue(0);
const opacity = useSharedValue(1);
const pan = Gesture.Pan()
.onUpdate((e) => {
translateX.value = e.translationX;
opacity.value = 1 - Math.abs(e.translationX) / 300;
})
.onEnd((e) => {
if (Math.abs(e.translationX) > 150) {
// Dismiss
translateX.value = withSpring(e.translationX > 0 ? 400 : -400);
opacity.value = withTiming(0, { duration: 200 });
} else {
// Snap back
translateX.value = withSpring(0);
opacity.value = withSpring(1);
}
});
const style = useAnimatedStyle(() => ({
transform: [{ translateX: translateX.value }],
opacity: opacity.value
}));
return (
<GestureDetector gesture={pan}>
<Animated.View style={[styles.card, style]} />
</GestureDetector>
);
}Layout Animations
import Animated, {
FadeIn,
FadeOut,
SlideInRight,
SlideOutLeft,
Layout
} from 'react-native-reanimated';
// Entering/Exiting
<Animated.View
entering={FadeIn.duration(300)}
exiting={FadeOut.duration(200)}
>
<Content />
</Animated.View>
// Custom entering
<Animated.View
entering={SlideInRight.springify().damping(15)}
exiting={SlideOutLeft.duration(200)}
>
<Content />
</Animated.View>
// Layout animation (for list reordering)
<Animated.View layout={Layout.springify()}>
<Content />
</Animated.View>LayoutAnimation (Simple)
import { LayoutAnimation, UIManager, Platform } from 'react-native';
// Enable on Android
if (Platform.OS === 'android') {
UIManager.setLayoutAnimationEnabledExperimental?.(true);
}
// Before state change
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setExpanded(!expanded);
// Custom config
LayoutAnimation.configureNext({
duration: 300,
create: {
type: LayoutAnimation.Types.easeInEaseOut,
property: LayoutAnimation.Properties.opacity
},
update: {
type: LayoutAnimation.Types.spring,
springDamping: 0.85
}
});Accessibility
import { AccessibilityInfo } from 'react-native';
// Check reduced motion
const [reduceMotion, setReduceMotion] = useState(false);
useEffect(() => {
AccessibilityInfo.isReduceMotionEnabled().then(setReduceMotion);
const subscription = AccessibilityInfo.addEventListener(
'reduceMotionChanged',
setReduceMotion
);
return () => subscription.remove();
}, []);
// Conditional animation
const duration = reduceMotion ? 0 : 300;Haptic Feedback
import * as Haptics from 'expo-haptics';
// or
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
// Pair with animations
const onButtonPress = () => {
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);
scale.value = withSequence(
withTiming(0.95, { duration: 50 }),
withSpring(1)
);
};Duration Scale
| Token | RN Duration | Use |
short-1 | 50 | Micro-feedback |
short-4 | 200 | Buttons, toggles |
medium-2 | 300 | Modals, sheets |
long-2 | 500 | Screen transitions |
Performance Tips
- Always use
useNativeDriver: truewhen possible - Avoid animating layout properties (width, height, margin)
- Use
transformandopacityfor best performance - Reanimated worklets run on UI thread
- Memoize animated styles to prevent re-renders
Related Skills
- Dependencies: easing, duration, spring, gesture-motion
- See also: ios-native, android-native, accessibility
- Libraries: react-native-reanimated, react-native-gesture-handler, moti
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

