[ReactNative] Add instructions for new `react-native bundle`

This commit is contained in:
Alex Kotliarskyi 2015-04-21 14:47:40 -07:00
parent ee3986342a
commit 1f1c6af9cd
2 changed files with 9 additions and 6 deletions

View File

@ -35,12 +35,12 @@
/** /**
* OPTION 2 * OPTION 2
* Load from pre-bundled file on disk. To re-generate the static bundle, `cd` * Load from pre-bundled file on disk. To re-generate the static bundle
* to your Xcode project folder in the terminal, and run * from the root of your project directory, run
* *
* $ curl 'http://localhost:8081/Examples/SampleApp/index.ios.bundle?dev=false&minify=true' -o main.jsbundle * $ react-native bundle --minify
* *
* then add the `main.jsbundle` file to your project and uncomment this line: * see http://facebook.github.io/react-native/docs/runningondevice.html
*/ */
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

View File

@ -1,5 +1,8 @@
// Offline JS // Offline JS
// To re-generate the offline bundle, run this from root of your project // To re-generate the offline bundle, run this from the root of your project:
// $ curl 'http://localhost:8081/Examples/SampleApp/index.ios.bundle?dev=false&minify=true' -o iOS/main.jsbundle //
// $ react-native bundle --minify
//
// See http://facebook.github.io/react-native/docs/runningondevice.html for more details.
throw new Error('Offline JS file is empty. See iOS/main.jsbundle for instructions'); throw new Error('Offline JS file is empty. See iOS/main.jsbundle for instructions');