[CHORE] Added Storybook documentation (#757)

This commit is contained in:
Aryan Koul 2019-03-26 02:25:50 +05:30 committed by Diego Mello
parent 5771757fa8
commit 2ce770fd22
4 changed files with 22 additions and 16 deletions

View File

@ -1,5 +0,0 @@
{
"expoServerPort": null,
"packagerPort": null,
"packagerPid": null
}

View File

@ -1,9 +0,0 @@
{
"hostType": "tunnel",
"lanType": "ip",
"dev": true,
"strict": false,
"minify": false,
"urlType": "exp",
"urlRandomness": null
}

View File

@ -214,3 +214,24 @@ $ detox build --configuration ios.sim.release
```bash ```bash
$ detox test --configuration ios.sim.release $ detox test --configuration ios.sim.release
``` ```
## 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

View File

@ -11,7 +11,6 @@
"ios": "react-native run-ios", "ios": "react-native run-ios",
"log-android": "react-native log-android", "log-android": "react-native log-android",
"android": "react-native run-android", "android": "react-native run-android",
"storybook": "storybook start -p 7007 | react-native start --projectRoot storybook",
"snyk-protect": "snyk protect" "snyk-protect": "snyk protect"
}, },
"rnpm": { "rnpm": {