Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Add storybook instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
derekgreenberg committed Sep 6, 2018
1 parent 3aba06a commit 7bfc89c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boilerplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ This directory will hold your Jest configs and mocks, as well as your [storyshot
**ignite**
The `ignite` directory stores all things Ignite, including CLI and boilerplate items. Here you will find generators, plugins and examples to help you get started with React Native.

## Running Storybook
From the command line in your generated app's root directory, enter `yarn run storybook`
This starts up the storybook server.

In `src/app/main.tsx`, change `SHOW_STORYBOOK` to `true` and reload the app.

For Visual Studio Code users, there is a handy extension that makes it easy to load Storybook use cases into a running emulator via tapping on items in the editor sidebar. Install the `React Native Storybook` extension by `Orta`, hit `cmd + shift + P` and select "Reconnect Storybook to VSCode". Expand the STORYBOOK section in the sidebar to see all use cases for components that have `.story.tsx` files in their directories.

## Previous Boilerplates

* [2017 aka Andross](https://github.com/infinitered/ignite-ir-boilerplate-andross)
Expand Down

0 comments on commit 7bfc89c

Please sign in to comment.