diff --git a/React/Base/RCTBundleURLProvider.m b/React/Base/RCTBundleURLProvider.m index fe00e1414b3..7fe1741f1c3 100644 --- a/React/Base/RCTBundleURLProvider.m +++ b/React/Base/RCTBundleURLProvider.m @@ -162,7 +162,7 @@ static NSString *serverRootWithHost(NSString *host) [self updateDefaults:@(enableDev) forKey:kRCTEnableDevKey]; } -- (void)setEnableEnableLiveReload:(BOOL)enableLiveReload +- (void)setEnableLiveReload:(BOOL)enableLiveReload { [self updateDefaults:@(enableLiveReload) forKey:kRCTEnableLiveReloadKey]; } diff --git a/local-cli/generator-ios/templates/app/AppDelegate.m b/local-cli/generator-ios/templates/app/AppDelegate.m index edaccd8aaf7..fac3b4fcdd2 100644 --- a/local-cli/generator-ios/templates/app/AppDelegate.m +++ b/local-cli/generator-ios/templates/app/AppDelegate.m @@ -18,6 +18,7 @@ { NSURL *jsCodeLocation; + [[RCTBundleURLProvider sharedSettings] setDefaults]; jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation