@react-native-community/cli.
Installation
Install Dependencies
Storybook’s default UI depends on
react-native-reanimated and react-native-worklets:Install Babel Plugin
Install the babel plugin to enable environment variable inlining:Add both plugins to your babel config:
babel.config.js
Create Entrypoint
Conditionally render Storybook based on the environment variable. Since
withStorybook replaces Storybook imports with empty modules when disabled, you can safely import Storybook at the top level:App.tsx
Project Template
For new React Native CLI projects, you can use the official Storybook template:Next Steps
Writing Stories
Learn how to write your first story
Metro Configuration
Explore advanced Metro config options