A simple example of storybook integration with react native
- clone the repo.
- go to root dir and run npm install
- To checkout without storybook run react-native start && react-native run-android.
- For storybook run npm run storybook. Before this terminate react-native server.
- After storybook server starts run react-native run-android.
- As i have set storybook server port to 7007. Browse localhost:7007
- In the left pane open select module, List of stories will appear select one story and check if it shows in your emulator.
- In the root dir you will find storybook dir.
- Inside storybook dir you will find stories dir. Create a story inside this dir and import it to index.js file.
- A new story will appear in localhost:7007
Anoop Singh (codesingh)
Email: anoop100singh@gmail.com
Stack Overflow: codesingh(username)