diff --git a/docs/runningondevice.html b/docs/runningondevice.html index 6bf32baffa6..56c4f55036c 100644 --- a/docs/runningondevice.html +++ b/docs/runningondevice.html @@ -1,4 +1,4 @@ -
Note that running on device requires Apple Developer account and provisioning your iPhone. This guide covers only React Native specific topic.
You can iterate quickly on device using development server. To do that, your laptop and your phone have to be on the same wifi network.
iOS/AppDelegate.mlocalhost to your laptop's IPHint
Shake the device to open development menu (reload, debug, etc.)
You can also pack all the JavaScript code within the app itself. This way you can test it without development server running and submit the app to the AppStore.
iOS/AppDelegate.mjsCodeLocation = [[NSBundle mainBundle] ...curl command in terminal from the root directory of your appPackager supports a couple of options:
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) - whenever or not to pipe the JS code through UglifyJS.If curl command fails make sure the packager is running. Also try adding --ipv4 flag to the end of it.
If you started your project a while ago, main.jsbundle might not be included into Xcode project. To add it, right click on your project directory and click "Add Files to ..." - choose the main.jsbundle file that you generated.
Note that running on device requires Apple Developer account and provisioning your iPhone. This guide covers only React Native specific topic.
You can iterate quickly on device using development server. To do that, your laptop and your phone have to be on the same wifi network.
iOS/AppDelegate.mlocalhost to your laptop's IPHint
Shake the device to open development menu (reload, debug, etc.)
You can also pack all the JavaScript code within the app itself. This way you can test it without development server running and submit the app to the AppStore.
iOS/AppDelegate.mjsCodeLocation = [[NSBundle mainBundle] ...curl command in terminal from the root directory of your appPackager supports a couple of options:
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.If curl command fails make sure the packager is running. Also try adding --ipv4 flag to the end of it.
If you started your project a while ago, main.jsbundle might not be included into Xcode project. To add it, right click on your project directory and click "Add Files to ..." - choose the main.jsbundle file that you generated.