Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHORE] Added Storybook documentation #757

Merged
merged 3 commits into from
Mar 25, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .expo/packager-info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"expoServerPort": null,
"packagerPort": null,
"packagerPid": null
"packagerPid": null,
aryankoul marked this conversation as resolved.
Show resolved Hide resolved
"devToolsPort": 19002
}
2 changes: 1 addition & 1 deletion .expo/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"hostType": "tunnel",
"hostType": "lan",
"lanType": "ip",
"dev": true,
"strict": false,
Expand Down
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down