[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
|
||||
}
|
23
README.md
23
README.md
|
@ -213,4 +213,25 @@ $ detox build --configuration ios.sim.release
|
|||
|
||||
```bash
|
||||
$ 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",
|
||||
"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": {
|
||||
|
|
Loading…
Reference in New Issue