mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-13 01:18:56 +08:00
add explanation for jsCodeLocation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user