Storybook has been added to the
mobile repository to help prototype components. To use Storybook:
npm run storybook. This step automatically scans and loads all stories, then opens a new browser tab with the Storybook interface.
Note: When using a real device, you may need to configure the Storybook Host URL by updating the
.env file in the root of the repository. When running in an emulator, the code tries to use the default network values.
npm run android(or
npm run ios) and
din the terminal window where you ran
Caveat: Promises are currently broken in Storybook for react native. Components using promises will not work correctly. There is a temporary hacky fix to work around this issue: storybookjs/react-native#57.