mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-09 07:08:57 +08:00
Fixed jsCodeLocation init in demo app (#801)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user