Skip to content
storybookjs avatar

Setup React Native Storybook

Step-by-step setup for Storybook in Expo, Expo Router, React Native CLI, or Re.Pack projects.

CCM score
75 of 100
skills.sh installs
571
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers four flows selected by project type: Expo, Expo Router, plain React Native CLI, and Re.Pack with rspack or webpack
  • Walks through create storybook init, WebSocket enablement in .rnstorybook/index.tsx, and story glob updates in main.ts
  • Configures the bundler with withStorybook for Metro or StorybookPlugin for Re.Pack, with enabled flags to strip Storybook from release builds
  • Designed for React Native projects adding @storybook/react-native v10 and detecting npm, yarn, pnpm, or bun lockfiles

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/storybookjs/react-native
Categories
Mobile Apps, Testing & QA
First seen
Jun 3, 2026

Questions

What does the setup-react-native-storybook skill do?

setup-react-native-storybook adds Storybook for React Native v10 to an Expo, Expo Router, React Native CLI or Re.Pack project. It creates the .rnstorybook configuration files, wraps metro.config.js with withStorybook or adds the StorybookPlugin to a Re.Pack rspack or webpack config, and sets up the Storybook entrypoint.

How do I install the setup-react-native-storybook skill?

Run npx -y skills add storybookjs/react-native --skill setup-react-native-storybook -y in your project to install the setup-react-native-storybook skill. After that, your agent can use setup-react-native-storybook to add Storybook to the project.

Which React Native project types does setup-react-native-storybook support?

setup-react-native-storybook covers four flows: Expo without a router, Expo with Expo Router, plain React Native CLI without Expo, and Re.Pack with rspack or webpack. It picks the flow from the project files, such as an app directory with _layout.tsx for Expo Router or a rspack.config for Re.Pack.

Where does setup-react-native-storybook fit in the Mobile Apps category?

setup-react-native-storybook sits in the Mobile Apps category on Claude Marketplaces. It focuses on wiring Storybook into an existing React Native project, including WebSocket support for the Storybook web companion, while vercel-react-native-skills and animate-expo lead the category for other mobile tasks.

More from storybookjs/react-native

All 2

Similar to Setup React Native Storybook

More Mobile Apps