mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
Fix bundle root location in demo app when loading from packager
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user