From 2493a609f3a862e9216faec93c90a5fa31c8599d Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Fri, 5 Aug 2016 12:25:42 -0700 Subject: [PATCH] add explanation for jsCodeLocation --- Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m b/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m index 6675d53..3c8b32b 100644 --- a/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m +++ b/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m @@ -9,7 +9,10 @@ { NSURL *jsCodeLocation; + // 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. //jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; + + // Use CodePush to resolve your JS bundle location, so that your app will run the version of the code distributed via CodePush jsCodeLocation = [CodePush bundleURL]; RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation