vn-verdnaturachat/storybook/storybook.js

15 lines
485 B
JavaScript
Raw Normal View History

2017-11-27 23:29:15 +00:00
import { AppRegistry } from 'react-native';
2017-08-17 19:31:27 +00:00
import { getStorybookUI, configure } from '@storybook/react-native';
// import stories
configure(() => {
require('./stories');
}, module);
// This assumes that storybook is running on the same host as your RN packager,
// to set manually use, e.g. host: 'localhost' option
const StorybookUI = getStorybookUI({ port: 7007, onDeviceUI: true });
2017-11-27 23:29:15 +00:00
AppRegistry.registerComponent('RocketChatRN', () => StorybookUI);
2017-08-17 19:31:27 +00:00
export default StorybookUI;