diff --git a/package.json b/package.json index c952b9f00..a18c15b59 100644 --- a/package.json +++ b/package.json @@ -52,11 +52,11 @@ "regenerator-runtime": "^0.11.0", "remote-redux-devtools": "^0.5.12", "strip-ansi": "^4.0.0", + "@storybook/react-native": "^3.2.15", "snyk": "^1.41.1" }, "devDependencies": { "@storybook/addon-storyshots": "^3.2.15", - "@storybook/react-native": "^3.2.15", "babel-eslint": "^8.0.2", "babel-jest": "21.2.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.10", diff --git a/storybook/storybook.js b/storybook/storybook.js index 17f1fef97..841d13edd 100644 --- a/storybook/storybook.js +++ b/storybook/storybook.js @@ -1,6 +1,4 @@ -/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions, global-require */ - -import { Navigation } from 'react-native-navigation'; +import { AppRegistry } from 'react-native'; import { getStorybookUI, configure } from '@storybook/react-native'; // import stories @@ -11,15 +9,6 @@ configure(() => { // 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 }); -Navigation.registerComponent('storybook.UI', () => StorybookUI); -Navigation.startSingleScreenApp({ - screen: { - screen: 'storybook.UI', - title: 'Storybook', - navigatorStyle: { - navBarHidden: true - } - } -}); +AppRegistry.registerComponent('RocketChatRN', () => StorybookUI); export default StorybookUI;