@storybook/native
storybook native build tool
Last updated 6 days ago by amalik2 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @storybook/native 
SYNC missed versions from official npm registry.

@storybook/native

This module is a build tool that allows creation of stories to view components inside of Android and iOS native applications easily inside of storybook. The intended purpose is for native developers to be able to quickly get started with storybook without having to learn how to write extensive amounts of JavaScript, and without having to learn how to use storybook.

Installation

npm install @storybook/native or yarn add @storybook/native

Usage

To use this module, you must create a node script such as this example one that imports generateStories from this module. Pass in details about stories that you want this module to generate. Each call to generateStories generates a file that contains stories generated from the information you pass in. Run yarn start-storybook to view those stories in a local storybook instance, or run yarn build-storybook to build a static storybook that can be uploaded as a web page.

Parameters for generateStories

  • category: The group/category that the specified stories will fall under
  • filePath: The path to write the file that contains the generated stories
  • apiKey: Your application's public key that you received from appetize.io
  • platform: What platform your app is running on ("ios" or "android")
  • stories: A list of stories to generate, where each story is an object represented with the following keys:
    • name: The name of the story
    • appParams: Either an object that gets passed to your application when it first launches, or an object representing query string parameters for deep linking. This is what is used to determine which component or page to load in your application, and it can also be used to handle other logic such as theming.
    • docs (optional): Documentation that you want to show up in the storybook docs panel
  • deepLinkUrl: An optional base URL that is required only if you are using deep linking. Your application must be set to handle incoming URLs for this host (example: sb-native://deep.link)

Current Tags

  • 1.0.3-canary.27.388.0                                ...           canary (5 days ago)
  • 1.0.2                                ...           latest (6 days ago)

32 Versions

  • 1.0.3-canary.27.388.0                                ...           5 days ago
  • 1.0.2                                ...           6 days ago
  • 1.0.2-canary.26.380.0                                ...           6 days ago
  • 1.0.2-canary.25.367.0                                ...           6 days ago
  • 1.0.1                                ...           6 days ago
  • 1.0.1-canary.24.347.0                                ...           6 days ago
  • 1.0.1-canary.24.343.0                                ...           6 days ago
  • 1.0.1-canary.24.339.0                                ...           6 days ago
  • 1.0.1-canary.24.335.0                                ...           6 days ago
  • 1.0.1-canary.24.331.0                                ...           7 days ago
  • 1.0.0                                ...           19 days ago
  • 0.2.13-canary.23.322.0                                ...           19 days ago
  • 0.2.12                                ...           19 days ago
  • 0.2.12-canary.22.306.0                                ...           a month ago
  • 0.2.11                                ...           a month ago
  • 0.2.11-canary.19.297.0                                ...           a month ago
  • 0.2.10                                ...           3 months ago
  • 0.2.10-canary.17.288.0                                ...           3 months ago
  • 0.2.9                                ...           3 months ago
  • 0.2.9-canary.15.279.0                                ...           3 months ago
  • 0.2.9-canary.16.271.0                                ...           3 months ago
  • 0.2.9-canary.15.267.0                                ...           3 months ago
  • 0.2.8                                ...           3 months ago
  • 0.2.7                                ...           3 months ago
  • 0.2.7-canary.14.239.0                                ...           3 months ago
  • 0.2.6                                ...           3 months ago
  • 0.2.6-canary.13.225.0                                ...           3 months ago
  • 0.2.5                                ...           3 months ago
  • 0.2.4                                ...           3 months ago
  • 0.2.0                                ...           3 months ago
  • 0.1.7-canary.6.164.0                                ...           3 months ago
  • 0.1.7-canary.6.157.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 263
Last Day 0
Last Week 242
Last Month 23
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |