Fix bundle root location in demo app when loading from packager

This commit is contained in:
Richard Hua
2016-09-07 11:58:28 -07:00
committed by GitHub
parent f29e5c66e4
commit bb04535fbe

View File

@@ -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];