{"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.","category":"apps","tags":["expo","gestures"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/add-expo-motion","api_url":"https://theskillvault.ai/api/skills/add-expo-motion","raw_url":"https://theskillvault.ai/api/skills/add-expo-motion/raw","body":"# Add Expo motion\n\nMotion should be rare. A control the person hits all day should not slide. Name the purpose first: feedback, continuity, or a rare delight.\n\n## When to use\n- A press, a drag, or a transition should move.\n- The motion stutters because it runs on the JavaScript runtime.\n- Reduced motion is ignored.\n\n## When not to use\n- The need is a data request. That is a separate skill.\n- The need is an over-the-air bundle. That is a separate skill.\n- The motion is for a website. This is the Expo path.\n- The person only wants a native sheet from Expo UI. That is a separate skill.\n\n## Steps\n1. 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.\n2. 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.\n3. 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.\n4. Pick a spring when the motion should feel physical, and a timing when it should take a fixed duration.\n5. Screen-to-screen changes use the native stack in Expo Router. Do not rebuild that transition by hand.\n6. 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.\n\n## Gotchas\n- Do not include passwords, tokens, or private labels in sample motion.\n- There is no hover. Press, drag, or nothing.\n- Haptics, if used, come from `expo-haptics` and stay soft.\n- 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.\n\n## Portability\nIf 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.\n\n## Done when\n- The motion has a named purpose, or it was left still.\n- Frame-by-frame motion stays on the UI runtime.\n- Reduced motion has a path.\n\n## Example prompt\n\"Add a short Reanimated press scale on this Expo button, on the UI runtime, with a reduced-motion path. Do not animate peer switches.\"\n\n---\nAdapted from \"expo-animation\" by Emil Kowalski (MIT, Copyright (c) 2026 Emil Kowalski), as published in expo/skills. See LICENSE.txt.","files":["LICENSE.txt"],"license":"MIT","license_name":"MIT License","license_url":"https://opensource.org/license/mit","attribution":"Based on work by Emil Kowalski (expo/skills expo-animation; also published in emilkowalski/skills) (Copyright (c) 2026 Emil Kowalski, MIT License), https://github.com/expo/skills/tree/a9e5bd3fa00b4e61f632e43f85da73aee1942582/plugins/expo/skills/expo-animation; adapted by TheSkillVault, https://theskillvault.ai","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-expo-motion/raw' -o ~/'.claude/skills/add-expo-motion/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-expo-motion/files/LICENSE.txt' -o ~/'.claude/skills/add-expo-motion/LICENSE.txt'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-expo-motion/raw' -o '.cursor/skills/add-expo-motion/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-expo-motion/files/LICENSE.txt' -o '.cursor/skills/add-expo-motion/LICENSE.txt'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-expo-motion/raw' -o '.agents/skills/add-expo-motion/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-expo-motion/files/LICENSE.txt' -o '.agents/skills/add-expo-motion/LICENSE.txt'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}