Edit Docs Making Offline iOS Bundle
Summary:
via commit 8c29a52c54
, the way has changed building offline bundle. So this commit update the docs about that.
Closes https://github.com/facebook/react-native/pull/9186
Differential Revision: D3682643
Pulled By: JoelMarcey
fbshipit-source-id: 3e4127ca0c00f254dc3464e73c1c2496c0710b85
This commit is contained in:
parent
df05311777
commit
20c6d11f84
|
@ -24,16 +24,8 @@ In Xcode, select your phone as build target and press "Build and run"
|
||||||
|
|
||||||
You have built a great app using React Native, and you are now itching to release it in the App Store. The process is the same as any other native iOS app, with some additional considerations to take into account.
|
You have built a great app using React Native, and you are now itching to release it in the App Store. The process is the same as any other native iOS app, with some additional considerations to take into account.
|
||||||
|
|
||||||
### Disabling the developer menu
|
|
||||||
|
|
||||||
Building an app for distribution in the App Store requires using the `Release` scheme in Xcode. Apps built for `Release` will automatically disable the in-app developer menu. This will prevent your users from inadvertently accessing the menu in production.
|
Building an app for distribution in the App Store requires using the `Release` scheme in Xcode. Apps built for `Release` will automatically disable the in-app developer menu. This will prevent your users from inadvertently accessing the menu in production.
|
||||||
|
This way you can test the app independently of the development server, and will allow you to distribute the app to beta testers and submit the app to the App Store.
|
||||||
### Using the offline bundle
|
|
||||||
|
|
||||||
Set up your app to load your JavaScript, images, and other static assets from its resource bundle rather than the development server. This way you can test the app independently of the development server, and will allow you to distribute the app to beta testers and submit the app to the App Store.
|
|
||||||
|
|
||||||
1. Open `ios/YourApp/AppDelegate.m`
|
|
||||||
2. Uncomment the line, `jsCodeLocation = [[NSBundle mainBundle] ...`
|
|
||||||
|
|
||||||
### App Transport Security
|
### App Transport Security
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue