Skip to content

Commit

Permalink
Revert moving index.[ios|android].js.
Browse files Browse the repository at this point in the history
Reverting from 3e2673b -- this broke RN-storybook for `getstorybook` users.

See #1200
  • Loading branch information
tmeasday committed Jun 6, 2017
1 parent 77b68a5 commit effa811
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/cli/generators/REACT_NATIVE/template/storybook/index.ios.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { AppRegistry } from 'react-native';
import { getStorybookUI, configure } from '@storybook/react-native';

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

const StorybookUI = getStorybookUI({ port: 7007, host: 'localhost' });
AppRegistry.registerComponent('%APP_NAME%', () => StorybookUI);
export default StorybookUI;

0 comments on commit effa811

Please sign in to comment.