@exemplar/native-storybook

1.0.1 • Public • Published

@exemplar/native-storybook

Run React Native storybook through exemplar for a React Component.

Install

Add @exemplar/native-storybook to your dependencies.

npm i --save-dev @exemplar/native-storybook

Add ios and android run scripts to your package.json:

{
  "scripts": {
    "storybook:native:ios": "exemplar-native --platform ios",
    "storybook:native:android": "exemplar-native --platform android"
  }
}

CLI flags

The exemplar-native CLI supports the following flags.

  • --platform: define the platform to use, defaults to ios.
  • --entry: define a custom path for the storybook examples, defaults to [cwd]/examples/native.

Setting up stories

Before you can run storybook you will need create some @exemplar style examples: see the example structure in a nutshell.

Readme

Keywords

none

Package Sidebar

Install

npm i @exemplar/native-storybook

Weekly Downloads

1

Version

1.0.1

License

none

Unpacked Size

11.6 kB

Total Files

14

Last publish

Collaborators

  • swaagie
  • sivanmehta
  • jcline
  • indexzero