yogevbd 6 年前
父节点
当前提交
9de6a1fe4b
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4
    0
      lib/ios/RNNNavigationController.m
  2. 4
    0
      lib/ios/RNNNavigationOptions.m

+ 4
- 0
lib/ios/RNNNavigationController.m 查看文件

@@ -36,4 +36,8 @@
36 36
 	return ((UIViewController<RNNRootViewProtocol>*)self.topViewController).options;
37 37
 }
38 38
 
39
+- (UIViewController *)childViewControllerForStatusBarStyle {
40
+	return self.topViewController;
41
+}
42
+
39 43
 @end

+ 4
- 0
lib/ios/RNNNavigationOptions.m 查看文件

@@ -102,6 +102,10 @@ RCT_ENUM_CONVERTER(UIModalTransitionStyle,
102 102
 		backgroundImageView.image = [self.rootBackgroundImage isKindOfClass:[UIImage class]] ? (UIImage*)self.rootBackgroundImage : [RCTConvert UIImage:self.rootBackgroundImage];
103 103
 		[backgroundImageView setContentMode:UIViewContentModeScaleAspectFill];
104 104
 	}
105
+	
106
+	if (self.statusBarStyle) {
107
+		[viewController setNeedsStatusBarAppearanceUpdate];
108
+	}
105 109
     
106 110
     [self applyModalOptions:viewController];
107 111
 }