add explanation for jsCodeLocation

This commit is contained in:
Geoffrey Goh
2016-08-05 12:25:42 -07:00
parent 5441577f01
commit 2493a609f3

View File

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