Skip to content

Commit

Permalink
Fix build on xcode 10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd committed Nov 5, 2019
1 parent a053141 commit 99ddcd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ios/ReactNativeNavigation.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ -(void)bootstrap:(NSURL *)jsCodeLocation launchOptions:(NSDictionary *)launchOpt
- (UIWindow *)initializeKeyWindow {
UIWindow* keyWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
if (@available(iOS 13.0, *)) {
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
keyWindow.backgroundColor = [UIColor systemBackgroundColor];
#endif
} else {
keyWindow.backgroundColor = [UIColor whiteColor];
}
Expand Down

0 comments on commit 99ddcd8

Please sign in to comment.