From bb04535fbef4cb580da4c29ae628452cc0774fc8 Mon Sep 17 00:00:00 2001 From: Richard Hua Date: Wed, 7 Sep 2016 11:58:28 -0700 Subject: [PATCH] Fix bundle root location in demo app when loading from packager --- Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m b/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m index 343c42c..cac9dd1 100644 --- a/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m +++ b/Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m @@ -10,7 +10,7 @@ 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];