Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Replaced new jsCodeLocation in docs (microsoft#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergoncharov-zz authored Feb 12, 2019
1 parent effa429 commit ec149b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/setup-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Once your Xcode project has been setup to build/link the CodePush plugin, you ne
2. Find the following line of code, which loads your JS Bundle from the app binary for production releases:
```objective-c
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
```
3. Replace it with this line:
Expand All @@ -121,7 +121,7 @@ For React Native 0.49 and above:
NSURL *jsCodeLocation;
#ifdef DEBUG
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.bundle?platform=ios&dev=true"];
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
jsCodeLocation = [CodePush bundleURL];
#endif
Expand Down

0 comments on commit ec149b6

Please sign in to comment.