https://github.com/bamlab/storybook-addon-react-native-deployment
Enable deployment of a storybook on your React Native app
https://github.com/bamlab/storybook-addon-react-native-deployment
Last synced: about 1 year ago
JSON representation
Enable deployment of a storybook on your React Native app
- Host: GitHub
- URL: https://github.com/bamlab/storybook-addon-react-native-deployment
- Owner: bamlab
- Created: 2018-01-25T17:22:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T18:00:12.000Z (over 8 years ago)
- Last Synced: 2025-05-24T01:05:31.943Z (about 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`:
```javascript
import { disableStorybookServer } from "storybook-addon-react-native-deployment";
disableStorybookServer();
```
For instance:
```javascript
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 });
// ...
```