This repo showcases some components that I made for a personal React Native project (contained in a separate private repo).
I wrote a blog post about the Storybook setup process here:
- React Native
- TypeScript
- Storybook
@storybook/react-native-serverfor using the web interfacereact-native-storybook-loaderfor dynamic story loading
- Lint: ESLint (Standard JS format)
- CI: Github Actions
- Clone this repo
yarn install- If you're using an iOS emulator,
npx pod-install - Create an
.envfile - Copy the contents of
.env.sample yarn storybookto start the Storybook Server (localhost:7007)yarn iosoryarn androidto start Storybook in the emulator
NOTE: In order to boot up Storybook, it's necessary to set the environment variable LOAD_STORYBOOK to true (steps 4 and 5 above). Otherwise, it will boot up the default app created by React Native CLI.