yogevbd 6 years ago
parent
commit
9de6a1fe4b
2 changed files with 8 additions and 0 deletions
  1. 4
    0
      lib/ios/RNNNavigationController.m
  2. 4
    0
      lib/ios/RNNNavigationOptions.m

+ 4
- 0
lib/ios/RNNNavigationController.m View File

@@ -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 View File

@@ -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
 }