Index of every page on this site: llms.txt
All skills
tristanmanchester avatar

/animating-react-native-expo

@3323bc9
Run it yourself

Implement and debug React Native or Expo motion with Reanimated 4 and Gesture Handler 3: state transitions, layout, gestures, scroll, worklets, cancellation, and accessible alternatives. Use for native UI motion, not web Motion or a reason to add canvas graphics to ordinary views.

Use this Skill: https://skilld.dev/gh/tristanmanchester/agent-skills/animating-react-native-expo

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdebugging-and-performance.md

≈643 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Debugging & performance checklist

Verify the basics

1) Reanimated 4 is New Architecture only

If you see native build/runtime issues after upgrading, verify your app is on the New Architecture.

Docs:

2) Avoid “Remote JS Debugging”

Expo notes Reanimated is incompatible with remote debugging on JSC; prefer Hermes + inspector.

Docs: https://docs.expo.dev/versions/latest/sdk/reanimated/

Worklet-related issues

“Failed to create a worklet”

Common causes:

  • Wrong/missing Babel plugin.
    • Expo: generally auto-configured when installed via expo install.
    • Bare: use react-native-worklets/plugin (Reanimated 4 migration).

Migration guide: https://docs.swmansion.com/react-native-reanimated/docs/guides/migration-from-3.x/

JS side-effects from worklets

Use scheduleOnRN (not runOnJS). Functions passed to scheduleOnRN must exist in JS scope.

Docs: https://docs.swmansion.com/react-native-reanimated/docs/guides/worklets/

Closure capture

If a worklet “randomly” slows down, check whether it captured a large object.

Docs: https://docs.swmansion.com/react-native-reanimated/docs/guides/worklets/

Gesture issues

Gestures not recognised

  • Ensure you wrapped the root with GestureHandlerRootView.
  • For Android Modals, wrap Modal content with a root view.

Docs: https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation/

Conflicts / undefined behaviour

From the GestureDetector docs:

  • Don’t nest detectors using different API styles.
  • Don’t reuse the same gesture instance across multiple detectors.

Docs: https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-detectors/

CSS transition performance

Avoid transitionProperty: 'all' unless you absolutely need it.

Docs: https://docs.swmansion.com/react-native-reanimated/docs/css-transitions/transition-property/

Layout animation gotchas on New Architecture

From the entering/exiting docs:

  • Don’t overwrite nativeID on animated views.
  • Some components overwrite nativeID for children; wrap animated children with a plain View if animations don’t run.
  • View flattening can cause a removed parent not to wait for children’s exiting animations; mitigate with collapsable={false}.

Docs: https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1mo5 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides documentation, code examples, and a diagnostic script for implementing animations in React Native (Expo) apps using Reanimated v4 and Gesture Handler. No malicious patterns or security risks were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

  • Runlayer8mo

    9/9 files flagged

  • ZeroLeaks6mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 3323bc9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Steadyupdated last month
metadata
{
  "version": "2.0.0",
  "reviewed": "2026-09-13"
}
Other metadata
compatibility
Requires a compatible React Native New Architecture, Reanimated 4, Worklets, and Gesture Handler 3 stack. Resolve versions through the app's Expo SDK or upstream compatibility tables; native verification needs a device or simulator build.

README badge

README badge for tristanmanchester/agent-skills/animating-react-native-expo