yogevbd il y a 6 ans
Parent
révision
9de6a1fe4b
2 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 4
    0
      lib/ios/RNNNavigationController.m
  2. 4
    0
      lib/ios/RNNNavigationOptions.m

+ 4
- 0
lib/ios/RNNNavigationController.m Voir le fichier

@@ -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 Voir le fichier

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