瀏覽代碼

Fix build on xcode 10.x

yogevbd 5 年之前
父節點
當前提交
99ddcd8640
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      lib/ios/ReactNativeNavigation.m

+ 2
- 0
lib/ios/ReactNativeNavigation.m 查看文件

68
 - (UIWindow *)initializeKeyWindow {
68
 - (UIWindow *)initializeKeyWindow {
69
 	UIWindow* keyWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
69
 	UIWindow* keyWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
70
 	if (@available(iOS 13.0, *)) {
70
 	if (@available(iOS 13.0, *)) {
71
+#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
71
 		keyWindow.backgroundColor = [UIColor systemBackgroundColor];
72
 		keyWindow.backgroundColor = [UIColor systemBackgroundColor];
73
+#endif
72
 	} else {
74
 	} else {
73
 		keyWindow.backgroundColor = [UIColor whiteColor];
75
 		keyWindow.backgroundColor = [UIColor whiteColor];
74
 	}
76
 	}