Fixed setDefaults not being called in React Native apps, fixed typo

Reviewed By: javache

Differential Revision: D3469296

fbshipit-source-id: 032472fede4bfbd051b0f725f35368b22edcc130
This commit is contained in:
Nathan Azaria 2016-06-22 07:09:51 -07:00 committed by Facebook Github Bot 4
parent af28de5300
commit 9845f49581
2 changed files with 2 additions and 1 deletions

View File

@ -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];
}

View File

@ -18,6 +18,7 @@
{
NSURL *jsCodeLocation;
[[RCTBundleURLProvider sharedSettings] setDefaults];
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation