[CHORE] Added Storybook documentation (#757)
This commit is contained in:
parent
5771757fa8
commit
2ce770fd22
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"expoServerPort": null,
|
|
||||||
"packagerPort": null,
|
|
||||||
"packagerPid": null
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"hostType": "tunnel",
|
|
||||||
"lanType": "ip",
|
|
||||||
"dev": true,
|
|
||||||
"strict": false,
|
|
||||||
"minify": false,
|
|
||||||
"urlType": "exp",
|
|
||||||
"urlRandomness": null
|
|
||||||
}
|
|
21
README.md
21
README.md
|
@ -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
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue