mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
Display React Native Modals with transparent background
Reviewed By: javache Differential Revision: D3779522 fbshipit-source-id: c7c036b20755ac49714c5085c38ba122abcbae04
This commit is contained in:
parent
708efcffba
commit
029f5687be
@ -12,6 +12,20 @@
|
||||
@implementation RCTModalHostViewController
|
||||
{
|
||||
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
|
||||
@ -34,4 +48,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (UIStatusBarStyle)preferredStatusBarStyle
|
||||
{
|
||||
return _preferredStatusBarStyle;
|
||||
}
|
||||
|
||||
- (BOOL)prefersStatusBarHidden
|
||||
{
|
||||
return _preferredStatusBarHidden;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user