Skip to content

Commit

Permalink
Fix bundle root location in demo app when loading from packager
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Hua authored Sep 7, 2016
1 parent f29e5c6 commit bb04535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
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];
//jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" 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];
Expand Down

0 comments on commit bb04535

Please sign in to comment.