Skip to content

Commit

Permalink
Fixed setDefaults not being called in React Native apps, fixed typo
Browse files Browse the repository at this point in the history
Reviewed By: javache

Differential Revision: D3469296

fbshipit-source-id: 032472fede4bfbd051b0f725f35368b22edcc130
  • Loading branch information
nathanajah authored and Facebook Github Bot 4 committed Jun 22, 2016
1 parent af28de5 commit 9845f49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion React/Base/RCTBundleURLProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ - (void)setEnableDev:(BOOL)enableDev
[self updateDefaults:@(enableDev) forKey:kRCTEnableDevKey];
}

- (void)setEnableEnableLiveReload:(BOOL)enableLiveReload
- (void)setEnableLiveReload:(BOOL)enableLiveReload
{
[self updateDefaults:@(enableLiveReload) forKey:kRCTEnableLiveReloadKey];
}
Expand Down
1 change: 1 addition & 0 deletions local-cli/generator-ios/templates/app/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
NSURL *jsCodeLocation;

[[RCTBundleURLProvider sharedSettings] setDefaults];
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
Expand Down

0 comments on commit 9845f49

Please sign in to comment.