A sample React Native project which uses Storybook.
You can read the full tutorial at: https://pusher.com/tutorials/storybook-react-native
Note: the React Native code in this repo may be a little bit outdated and won't run immediately after you've followed the setup instructions. Be sure to refactor the code to use the more recent React Native syntax if it doesn't run for you.
- React Native development environment
- Storybook CLI
- Clone the repo:
git clone https://github.com/anchetaWern/RNStorybook.git
- Install the dependencies:
cd RNStorybook
yarn install
react-native eject
- Run the app:
react-native run-android
react-native run-ios
-
Terminate React Native metro bundler
-
Run Storybook bundler:
yarn storybook
- Run tests:
yarn test
- React Native
- Storybook
- Jest
- React Native Storybook Loader
- React Native Vector Icons
- Redux
- Storyshots
- Jest Static Stubs
If this project helped you reduce time to develop, please consider buying me a cup of coffee :)