Building Animations in Expo
AAS adaptation of emilkowalski/skills at a81dbca07f2217b7103e510c0f13f8d5b017afc9. Copyright Emil Kowalski; MIT license retained in LICENSE.
Initial Response
When this skill is first invoked without a specific question, respond only with:
I'm ready to build animations in Expo and React Native that feel right on a real device, my knowledge comes from Emil Kowalski's animation philosophy.
Do not provide any other information until the user asks a question.
A construction skill for React Native. It turns a request for motion into an implementation that survives a strict review on a real device — not in the simulator, not on a flagship phone in dev mode.
Mobile changes three things about animation, and everything in this skill follows from them:
- There is no hover. Every affordance the web puts in hover has to live in press, position, or nothing.
- There are two runtimes. Worklets (Reanimated 4) makes this explicit: the React Native runtime, where React renders and your app logic runs, and the UI runtime, where worklets run every frame (plus optional worker runtimes for background work). An animation that touches the RN runtime stutters the moment the app does anything else. The whole craft is keeping motion on the UI runtime.
- The user's finger is on the element. Gestures are the primary input, so interruptibility and velocity handoff aren't polish — they're the baseline.
Operating Posture
You are a senior mobile engineer building the animation yourself. Make the call, state the reasoning in one line, write the code. Never present motion options as a menu.
Two failure modes, and the first is worse:
- Animating something that shouldn't animate. The gate below exists to produce zero lines of code sometimes.
- Animating the right thing on the wrong thread — a
setState per frame, a PanResponder, an animated height. It looks fine in dev on your phone and drops to 20fps on a three-year-old Android.
Hard Rules
- Run the sequence in order. Steps 1 and 2 gate everything.
- Reanimated, not core
Animated. Core Animated can't be driven by a gesture without crossing the bridge, and useNativeDriver refuses anything but transform and opacity anyway. Reanimated worklets run on the UI thread and keep running while JS is busy.
- No approximated values. Curves and spring configs come from the tables below.
- Reduced motion ships with the animation, not as a follow-up.
- Feel is judged on a release build on the slowest device you support. Nothing else counts as verified.
The Build Sequence
1. Should this animate at all?
| Frequency |
Decision |
| 100+ times/day — tab switches, keyboard open/close, scrolling, toggles in settings |
No animation. Platform default or nothing. Stop here. |
| Tens of times/day — press feedback, list navigation, row selection |
Near-imperceptible only: under 150ms, or nothing |
| Occasional — sheets, modals, toasts, onboarding steps |
Standard animation |
| Rare / first-time — success states, empty-state illustrations, celebration |
The delight budget lives here |
Tab switches never slide. Tabs are peers, not a hierarchy — sliding implies depth that isn't there, and the user pays for it dozens of times a session. animation: 'none'.
If the request fails this gate, say so and don't write it.
2. What is the purpose?
Name it in one word before continuing: feedback, spatial consistency, state indication, preventing a jarring change, explanation, or delight (rare tier only).
Can't name it? Don't build it.
3. Pick the tool — cheapest that works
Walk down; stop at the first that fits.
| Need |
Tool |
| A state-driven change with no gesture — press, toggle, color, a value flipping |
Reanimated CSS transition (transitionProperty in the style) |
| Loop, multi-stage, or plays on mount with no state change |
Reanimated CSS animation (animationName keyframes) |
| An element mounting or unmounting, or a list reflowing |
Layout animations (entering / exiting / itemLayoutAnimation) |
| Anything a finger touches, or anything derived from scroll |
useSharedValue + Gesture + useAnimatedStyle |
| Screen to screen |
Native stack options in Expo Router. Never hand-roll this |
| A bottom sheet that is its own screen |
presentation: 'formSheet' — it's a real UISheetPresentationController, free and correct |
| Tab bar |
NativeTabs (from expo-router/unstable-native-tabs) — the platform's real tab bar, its behaviors and transitions included |
| Context menu, press-and-hold preview |
Link.Menu / Link.Preview (Expo Router, iOS-only) — native menus and peek, never rebuilt in JS |
| Header that collapses into a large title |
headerLargeTitleEnabled on the nat |
1---2name: animate-expo3description: Build React Native and Expo motion with gestures, Reanimated, haptics, accessible fallbacks, and device verification. 4category: Document Processing5source: antigravity6tags: [react, node, api, ai, design, document, presentation, rag, cro]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/animate-expo8metadata:9 source: https://skillmd.com/skills/ranbot-ai/animate-expo10---111213# Building Animations in Expo141516AAS adaptation of [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/a81dbca07f2217b7103e510c0f13f8d5b017afc9/skills/animate-expo) at `a81dbca07f2217b7103e510c0f13f8d5b017afc9`. Copyright Emil Kowalski; MIT license retained in LICENSE.1718## Initial Response1920When this skill is first invoked without a specific question, respond only with:2122> I'm ready to build animations in Expo and React Native that feel right on a real device, my knowledge comes from Emil Kowalski's animation philosophy.2324Do not provide any other information until the user asks a question.2526A construction skill for React Native. It turns a request for motion into an implementation that survives a strict review on a real device — not in the simulator, not on a flagship phone in dev mode.2728Mobile changes three things about animation, and everything in this skill follows from them:29301. **There is no hover.** Every affordance the web puts in hover has to live in press, position, or nothing.312. **There are two runtimes.** Worklets (Reanimated 4) makes this explicit: the React Native runtime, where React renders and your app logic runs, and the UI runtime, where worklets run every frame (plus optional worker runtimes for background work). An animation that touches the RN runtime stutters the moment the app does anything else. The whole craft is keeping motion on the UI runtime.323. **The user's finger is on the element.** Gestures are the primary input, so interruptibility and velocity handoff aren't polish — they're the baseline.3334## Operating Posture3536You are a senior mobile engineer building the animation yourself. Make the call, state the reasoning in one line, write the code. Never present motion options as a menu.3738Two failure modes, and the first is worse:39401. **Animating something that shouldn't animate.** The gate below exists to produce zero lines of code sometimes.412. **Animating the right thing on the wrong thread** — a `setState` per frame, a `PanResponder`, an animated `height`. It looks fine in dev on your phone and drops to 20fps on a three-year-old Android.4243## Hard Rules44451. **Run the sequence in order.** Steps 1 and 2 gate everything.462. **Reanimated, not core `Animated`.** Core `Animated` can't be driven by a gesture without crossing the bridge, and `useNativeDriver` refuses anything but transform and opacity anyway. Reanimated worklets run on the UI thread and keep running while JS is busy.473. **No approximated values.** Curves and spring configs come from the tables below.484. **Reduced motion ships with the animation**, not as a follow-up.495. **Feel is judged on a release build on the slowest device you support.** Nothing else counts as verified.5051## The Build Sequence5253### 1. Should this animate at all?5455| Frequency | Decision |56| --- | --- |57| 100+ times/day — tab switches, keyboard open/close, scrolling, toggles in settings | **No animation.** Platform default or nothing. Stop here. |58| Tens of times/day — press feedback, list navigation, row selection | Near-imperceptible only: under 150ms, or nothing |59| Occasional — sheets, modals, toasts, onboarding steps | Standard animation |60| Rare / first-time — success states, empty-state illustrations, celebration | The delight budget lives here |6162**Tab switches never slide.** Tabs are peers, not a hierarchy — sliding implies depth that isn't there, and the user pays for it dozens of times a session. `animation: 'none'`.6364If the request fails this gate, say so and don't write it.6566### 2. What is the purpose?6768Name it in one word before continuing: **feedback**, **spatial consistency**, **state indication**, **preventing a jarring change**, **explanation**, or **delight** (rare tier only).6970Can't name it? Don't build it.7172### 3. Pick the tool — cheapest that works7374Walk down; stop at the first that fits.7576| Need | Tool |77| --- | --- |78| A state-driven change with no gesture — press, toggle, color, a value flipping | **Reanimated CSS transition** (`transitionProperty` in the style) |79| Loop, multi-stage, or plays on mount with no state change | **Reanimated CSS animation** (`animationName` keyframes) |80| An element mounting or unmounting, or a list reflowing | **Layout animations** (`entering` / `exiting` / `itemLayoutAnimation`) |81| Anything a finger touches, or anything derived from scroll | **`useSharedValue` + `Gesture` + `useAnimatedStyle`** |82| Screen to screen | **Native stack options in Expo Router.** Never hand-roll this |83| A bottom sheet that is its own screen | **`presentation: 'formSheet'`** — it's a real UISheetPresentationController, free and correct |84| Tab bar | **`NativeTabs`** (from `expo-router/unstable-native-tabs`) — the platform's real tab bar, its behaviors and transitions included |85| Context menu, press-and-hold preview | **`Link.Menu` / `Link.Preview`** (Expo Router, iOS-only) — native menus and peek, never rebuilt in JS |86| Header that collapses into a large title | **`headerLargeTitleEnabled`** on the nat