mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
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:
parent
af28de5300
commit
9845f49581
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user