Skip to content
Native Animation

Getting started

Requirements, installing your first animation and using it in a screen.

Browse 410 published animations in the catalog.

Every animation is a self-contained React Native component. You copy it into your project (the CLI does it for you), and from then on it is your code. Prefer to ask your coding agent? See AI coding agents.

Requirements

PackageVersion
Expo SDKExpo SDK 58 and Expo SDK 57
React Native0.88 (New Architecture)
react-native-reanimated4.7
react-native-worklets0.13
react-native-gesture-handlerthe version each supported SDK installs
@shopify/react-native-skia2.14, only for pieces that draw with Skia

See Compatibility and dependencies for other SDKs and lower-dependency choices, and Quality and testing for our checks and device review.

Each animation page lists its exact dependencies. The CLI installs missing ones with npx expo install, which picks the versions your SDK supports.

For Native Animation Base, use npx nativeanimation init --base and npx nativeanimation add base-button without an account. Base is free forever under MIT. The sign-in steps below apply to other catalog pieces, including non-Base free pieces.

  1. Sign in for other catalog pieces

    npx nativeanimation login

    The CLI shows a short code and opens your browser. Confirm that the code matches and the terminal is linked to your account. The token is stored in your user config folder, never in the project.

  2. Add an animation

    npx nativeanimation add auto-height-accordion

    Files are written to src/components/<id>/ (or components/<id>/ when your project has no src folder). Use --path to choose another folder, or add a nativeanimation.json file with { "componentsPath": "app/ui" }.

  3. Use it

    import { AutoHeightAccordion } from '@/components/auto-height-accordion';
    
    export default function HelpScreen() {
      return <AutoHeightAccordion items={[{ id: 'shipping', title: 'Shipping', content: 'Ships in two business days.' }]} />;
    }

    Every piece takes its content through props (text, images, data) and exposes knobs for colors, timing and intensity. Its README, copied next to the code, documents every prop.

Skia pieces on the web

Pieces that draw with Skia need CanvasKit loaded before they mount on the web. Load it in your web entry point:

import { LoadSkiaWeb } from '@shopify/react-native-skia/lib/module/web';

LoadSkiaWeb().then(() => {
  root.render(<App />);
});

iOS and Android need nothing extra.

Accessibility

Animations are built to honor the system Reduce Motion setting with a still or cross-fade version, label their controls for screen readers, and offer a tap alternative to their gestures. Each README has an Accessibility section with what that piece does; if one falls short on your device, tell us and we fix it.