storybookjs avatar

Setup React Native Storybook

Automates the setup of Storybook v10 for React Native projects, handling the different configurations needed for Expo, Expo Router, React Native CLI, and Re.Pack setups. The skill intelligently detects your package manager (npm, yarn, pnpm, or bun) and uses the right commands throughout the installation process. It's especially thoughtful about Expo projects, using `npx expo install` to ensure dependency versions stay compatible. This saves you from the usual headaches of wiring up Storybook in a mobile environment where the Metro bundler and native tooling add complexity. If you're building a component library or design system for a React Native app, this gets you from zero to running Storybook without the manual configuration wrestling.

skills.sh installs
557
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add storybookjs/react-native --skill setup-react-native-storybook --agent claude-code

Installs into .claude/skills of the current project.

Files

React Native Storybook Setup

Add @storybook/react-native v10 to a React Native project.

Important: Detect the project's package manager (look for yarn.lock, pnpm-lock.yaml, or bun.lockb) and use it for all install/run commands instead of npm. The examples below use npm but substitute accordingly (e.g. yarn add instead of npm install, yarn storybook instead of npm run storybook). For Expo projects, use npx expo install (or bunx expo install, etc.) to install dependencies so Expo can resolve compatible versions.

For the init command, use <pm> create storybook with the flags shown below. Only npm needs -- before the flags. Never use npx/bunx etc for this.

Four setup flows based on project type:

  1. Expo (no router) - see references/expo-setup.md
  2. Expo with Expo Router - see references/expo-router-setup.md
  3. React Native CLI (no Expo) - see references/react-native-cli-setup.md
  4. Re.Pack (rspack/webpack) - see references/repack-setup.md

Flow Selection

Sponsors

Details

Repository
github.com/storybookjs/react-native
Categories
Frontend Development, Mobile Development, Design & UI/UX, CLI & Terminal
First seen
Jun 3, 2026

More from storybookjs/react-native

All 2
1freestylefly avatarcanghe-markdown-to-htmlfreestylefly/canghe-skillsConverts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, PlantUML, footnotes, alerts, and infographics. Use when user a536skills.sh installs
2dylantarre avatarresponsive-adaptivedylantarre/animation-principlesUse when building context-dependent animations - duration that changes based on device, distance, user preference, or interaction context534skills.sh installs
3plugin87 avatarmigrate-design-systemplugin87/ux-ui-agent-skillsMap this token system to or from any external design system (Material Design 3, Apple HIG, Fluent, Carbon, Ant, shadcn/ui, Radix, Chakra, Mantine, Bootstrap…) —531skills.sh installs
4plugin87 avatartoken-buildplugin87/ux-ui-agent-skillsSet up or run the token build pipeline — transform the DTCG tokens/*.json (source of truth) into platform artifacts (CSS variables, Tailwind @theme, JS/TS, iOS 522skills.sh installs
5lovropodobnik avatarui-refactorlovropodobnik/refactoring-ui-skillui refactor519skills.sh installs
6sickn33 avatarangular-best-practicessickn33/antigravity-awesome-skillsangular best practices510skills.sh installs