storybook-addon-react-native-deployment

1.0.1 • Public • Published

Storybook Addon for RN Deployment

With this package, you can disable the channel between your app and the storybook server to only have the app UI of the storybook.

This allows you to deploy your Storybook on a real device for instance.

Usage

Install it with yarn add --dev storybook-addon-react-native-deployment

Then add those lines when initializing your storybook, usually in storybook/storybook.js:

import { disableStorybookServer } from "storybook-addon-react-native-deployment";

disableStorybookServer();

For instance:

import { getStorybookUI, configure } from "@storybook/react-native";

import { disableStorybookServer } from "storybook-addon-react-native-deployment";

disableStorybookServer();

configure(() => {
  // import stories
}, module);

const StorybookUIRoot = getStorybookUI({ port: 7007, onDeviceUI: true });

// ...

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i storybook-addon-react-native-deployment

      Weekly Downloads

      0

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • almouro