Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 2493a60

Browse files
committed
add explanation for jsCodeLocation
1 parent 5441577 commit 2493a60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
99
{
1010
NSURL *jsCodeLocation;
1111

12+
// Use React Native's RCTBundleURLProvider to resolve your JS bundle location, so that your app will load the JS bundle from the packager server during development.
1213
//jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
14+
15+
// Use CodePush to resolve your JS bundle location, so that your app will run the version of the code distributed via CodePush
1316
jsCodeLocation = [CodePush bundleURL];
1417

1518
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation

0 commit comments

Comments
 (0)