Fixed jsCodeLocation init in demo app (#801)

This commit is contained in:
max-mironov
2017-04-19 09:30:38 +03:00
committed by GitHub
parent 57a1e43f1f
commit 9b366d56d9

View File

@@ -20,7 +20,11 @@
NSURL *jsCodeLocation;
jsCodeLocation = [CodePush bundleURL];
#ifdef DEBUG
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
#else
jsCodeLocation = [CodePush bundleURL];
#endif
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"CodePushDemoApp"