Bläddra i källkod

Improved RNNSplashScreen status bar styling (#4698)

Daniel Cohen Gindi 6 år sedan
förälder
incheckning
b3b88d15bb
2 ändrade filer med 14 tillägg och 1 borttagningar
  1. 1
    1
      lib/ios/RNNSplashScreen.h
  2. 13
    0
      lib/ios/RNNSplashScreen.m

+ 1
- 1
lib/ios/RNNSplashScreen.h Visa fil

3
 
3
 
4
 @interface RNNSplashScreen : UIViewController
4
 @interface RNNSplashScreen : UIViewController
5
 
5
 
6
-+(void)showOnWindow:(UIWindow *)window;
6
++ (void)showOnWindow:(UIWindow *)window;
7
 
7
 
8
 @end
8
 @end

+ 13
- 0
lib/ios/RNNSplashScreen.m Visa fil

73
 	}
73
 	}
74
 }
74
 }
75
 
75
 
76
+- (UIStatusBarStyle)preferredStatusBarStyle {
77
+	NSString *styleString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIStatusBarStyle"];
78
+	
79
+	if ([styleString isEqualToString:@"UIStatusBarStyleLightContent"])
80
+		return UIStatusBarStyleLightContent;
81
+	
82
+	return UIStatusBarStyleDefault;
83
+}
84
+
85
+- (BOOL)prefersStatusBarHidden {
86
+	return [[[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIStatusBarHidden"] boolValue];
87
+}
88
+
76
 @end
89
 @end