2
0
mirror of https://github.com/status-im/react-native.git synced 2025-01-15 20:15:11 +00:00

Display React Native Modals with transparent background

Reviewed By: javache

Differential Revision: D3779522

fbshipit-source-id: c7c036b20755ac49714c5085c38ba122abcbae04
This commit is contained in:
Mehdi Mulani 2016-08-29 13:56:54 -07:00 committed by Facebook Github Bot 6
parent 708efcffba
commit 029f5687be

@ -12,6 +12,20 @@
@implementation RCTModalHostViewController @implementation RCTModalHostViewController
{ {
CGRect _lastViewFrame; CGRect _lastViewFrame;
UIStatusBarStyle _preferredStatusBarStyle;
BOOL _preferredStatusBarHidden;
}
- (instancetype)init
{
if (!(self = [super init])) {
return nil;
}
_preferredStatusBarStyle = [[UIApplication sharedApplication] statusBarStyle];
_preferredStatusBarHidden = [[UIApplication sharedApplication] isStatusBarHidden];
return self;
} }
- (void)viewDidLayoutSubviews - (void)viewDidLayoutSubviews
@ -34,4 +48,14 @@
} }
} }
- (UIStatusBarStyle)preferredStatusBarStyle
{
return _preferredStatusBarStyle;
}
- (BOOL)prefersStatusBarHidden
{
return _preferredStatusBarHidden;
}
@end @end