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 authored and Facebook Github Bot 4 committed 2016-06-22 07:13:26 -07:00
1 parent af28de5300
commit 9845f49581
2 files changed
+2 -1

No files matched your search

+1 -1
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];
}
@@ -18,6 +18,7 @@
{
NSURL *jsCodeLocation;
[[RCTBundleURLProvider sharedSettings] setDefaults];
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation