From 8af8beb5444ce4a5df0f598f1b6608107931604b Mon Sep 17 00:00:00 2001 From: aryankoul Date: Sat, 23 Mar 2019 00:31:48 +0530 Subject: [PATCH 1/2] Documentation for storybook added --- .expo/packager-info.json | 3 ++- .expo/settings.json | 2 +- README.md | 23 ++++++++++++++++++++++- package.json | 1 - 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.expo/packager-info.json b/.expo/packager-info.json index 24e8ec3992..0a0fdde696 100644 --- a/.expo/packager-info.json +++ b/.expo/packager-info.json @@ -1,5 +1,6 @@ { "expoServerPort": null, "packagerPort": null, - "packagerPid": null + "packagerPid": null, + "devToolsPort": 19002 } \ No newline at end of file diff --git a/.expo/settings.json b/.expo/settings.json index 5eee78b49b..6afa14e119 100644 --- a/.expo/settings.json +++ b/.expo/settings.json @@ -1,5 +1,5 @@ { - "hostType": "tunnel", + "hostType": "lan", "lanType": "ip", "dev": true, "strict": false, diff --git a/README.md b/README.md index 65a9a803d2..f1728a571a 100644 --- a/README.md +++ b/README.md @@ -213,4 +213,25 @@ $ detox build --configuration ios.sim.release ```bash $ detox test --configuration ios.sim.release -``` \ No newline at end of file +``` + +## Storybook +- Open index.js + +- Uncomment following line + +```bash +import './storybook'; +``` + +- Comment out following lines +```bash +import './app/ReactotronConfig'; +import { AppRegistry } from 'react-native'; +import App from './app/index'; +import { name as appName } from './app.json'; + +AppRegistry.registerComponent(appName, () => App); +``` + +- Start your application again \ No newline at end of file diff --git a/package.json b/package.json index 09ac117d17..5085a8728e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "ios": "react-native run-ios", "log-android": "react-native log-android", "android": "react-native run-android", - "storybook": "storybook start -p 7007 | react-native start --projectRoot storybook", "snyk-protect": "snyk protect" }, "rnpm": { From ecea039cb3ce24ced3ab16c9639b2aef308ab12b Mon Sep 17 00:00:00 2001 From: aryankoul Date: Sat, 23 Mar 2019 01:00:28 +0530 Subject: [PATCH 2/2] Expo files removed --- .expo/packager-info.json | 6 ------ .expo/settings.json | 9 --------- 2 files changed, 15 deletions(-) delete mode 100644 .expo/packager-info.json delete mode 100644 .expo/settings.json diff --git a/.expo/packager-info.json b/.expo/packager-info.json deleted file mode 100644 index 0a0fdde696..0000000000 --- a/.expo/packager-info.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "expoServerPort": null, - "packagerPort": null, - "packagerPid": null, - "devToolsPort": 19002 -} \ No newline at end of file diff --git a/.expo/settings.json b/.expo/settings.json deleted file mode 100644 index 6afa14e119..0000000000 --- a/.expo/settings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "hostType": "lan", - "lanType": "ip", - "dev": true, - "strict": false, - "minify": false, - "urlType": "exp", - "urlRandomness": null -} \ No newline at end of file