give a more detailed bundle example

This commit is contained in:
sunnylqm 2016-01-13 11:35:01 +08:00
parent 51621b14cb
commit 0359046af1
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ You can also pack all the JavaScript code within the app itself. This way you ca
1. Open `AwesomeApp/ios/AwesomeApp/AppDelegate.m`
2. Follow the instructions for "OPTION 2":
* Uncomment `jsCodeLocation = [[NSBundle mainBundle] ...`
* Run the `react-native bundle` command in terminal from the root directory of your app
* Run the `react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundle` command in terminal from the root directory of your app
The bundle script supports a couple of flags: