Skip to content

dannyhw/react-native-storybook-starter

Repository files navigation

A starter project with react native 0.79, @storybook/react-native 8, @storybook/react-native-web-vite

picture of storybook

getting started

To get all the dependencies run

yarn install 

To run on the web with addon-react-native-web use:

yarn storybook:web 

To run storybook on ios or android using metro (this starts the metro server with storybook enabled)

yarn storybook 

then to build for ios or android in another terminal run

yarn storybook:ios 

or

yarn storybook:android 

To update the stories one time, this happens once automatically when metro starts and withStorybook is enabled.

yarn storybook-generate 

navigate to a story with deep link example npx uri-scheme open "rnstorybook-starter:///?STORYBOOK_STORY_ID=button--secondary" --android --ios

About

starter project for react native cli setups, typescript included

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published