---
name: add-expo-motion
description: Adds motion and animation in an Expo project with Reanimated, on the UI runtime, using a spring or a timing and a reduced-motion path. Use when the user wants a gesture, press feedback, or a screen transition.
license: MIT
metadata:
  category: apps
  tags: "expo,gestures"
  author: johnny-bravo
  version: "1.0"
  updated: "2026-11-09"
  status: published
  aliases: "expo-animation, Reanimated, Gesture Handler, expo-haptics"
  source_url: "https://github.com/expo/skills/tree/a9e5bd3fa00b4e61f632e43f85da73aee1942582/plugins/expo/skills/expo-animation"
  source_license: MIT
  copyright: "Copyright (c) 2026 Emil Kowalski"
  original_author: "Emil Kowalski (expo/skills expo-animation; also published in emilkowalski/skills)"
  modified: "Adapted by TheSkillVault: rewritten as a short motion pass (when to animate, UI runtime, spring or timing, reduced motion); dropped the recipe catalogue. Independent how-to, not official Expo or Reanimated documentation. No motion was run for this library."
  imported_on: "2026-11-09"
---

# Add Expo motion

Motion should be rare. A control the person hits all day should not slide. Name the purpose first: feedback, continuity, or a rare delight.

## When to use
- A press, a drag, or a transition should move.
- The motion stutters because it runs on the JavaScript runtime.
- Reduced motion is ignored.

## When not to use
- The need is a data request. That is a separate skill.
- The need is an over-the-air bundle. That is a separate skill.
- The motion is for a website. This is the Expo path.
- The person only wants a native sheet from Expo UI. That is a separate skill.

## Steps
1. Decide whether it should move. Frequent switches stay still. A press can be a short scale. A sheet or a first-run moment can take longer.
2. Install `react-native-reanimated` and `react-native-worklets` with `npx expo install`, so the version matches the SDK. Add `react-native-gesture-handler` when a finger drives the motion.
3. Keep frame-by-frame motion on the UI runtime. A shared value plus a gesture is for a drag. A two-state press can be a CSS transition in Reanimated. Do not use a worklet for a simple toggle.
4. Pick a spring when the motion should feel physical, and a timing when it should take a fixed duration.
5. Screen-to-screen changes use the native stack in Expo Router. Do not rebuild that transition by hand.
6. Offer a reduced-motion path that skips or shortens the move. Write that path next to the animated one. This library did not run the motion.

## Gotchas
- Do not include passwords, tokens, or private labels in sample motion.
- There is no hover. Press, drag, or nothing.
- Haptics, if used, come from `expo-haptics` and stay soft.
- This is an independent how-to adapted from Emil Kowalski's skill as published in expo/skills. It is not official Expo documentation, and no motion was run for this library.

## Portability
If you use Reanimated on a bare React Native project, the same UI-runtime rule holds. If you use SwiftUI, use its own motion tools instead. If you use the web, do not follow this Expo path.

## Done when
- The motion has a named purpose, or it was left still.
- Frame-by-frame motion stays on the UI runtime.
- Reduced motion has a path.

## Example prompt
"Add a short Reanimated press scale on this Expo button, on the UI runtime, with a reduced-motion path. Do not animate peer switches."

---
Adapted from "expo-animation" by Emil Kowalski (MIT, Copyright (c) 2026 Emil Kowalski), as published in expo/skills. See LICENSE.txt.
