Skip to content

Commit

Permalink
Updated docs to reflect bundle script
Browse files Browse the repository at this point in the history
  • Loading branch information
arthuralee committed Apr 21, 2015
1 parent c13646f commit 3adcc03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/RunningOnDevice.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ You can also pack all the JavaScript code within the app itself. This way you ca
1. Open `iOS/AppDelegate.m`
2. Follow the instructions for "OPTION 2":
* Uncomment `jsCodeLocation = [[NSBundle mainBundle] ...`
* Run given `curl` command in terminal from the root directory of your app
* Run the `react-native bundle` command in terminal from the root directory of your app

Packager supports a couple of options:
The bundle script supports a couple of flags:

* `dev` (true by default) - sets the value of `__DEV__` variable. When `true` it turns on a bunch of useful development warnings. For production it is recommended to use `dev=false`.
* `minify` (false by default) - whether or not to pipe the JS code through UglifyJS.
* `--dev` - sets the value of `__DEV__` variable to true. When `true` it turns on a bunch of useful development warnings. For production it is recommended to set `__DEV__=false`.
* `--minify` - pipe the JS code through UglifyJS.

## Troubleshooting

Expand Down

0 comments on commit 3adcc03

Please sign in to comment.