RCTRedBox should appear beneath the status bar

Reviewed By: fromcelticpark

Differential Revision: D6370566

fbshipit-source-id: fe59a789113c2e8c24e96e560647efbd8bdfe67b
This commit is contained in:
Adam Ernst 2017-11-20 18:12:42 -08:00 committed by Facebook Github Bot
parent 9180d4eb82
commit 33cefc1760
1 changed files with 4 additions and 0 deletions

View File

@ -41,7 +41,11 @@
- (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
#if TARGET_OS_TV
self.windowLevel = UIWindowLevelAlert + 1000;
#else
self.windowLevel = UIWindowLevelStatusBar - 1;
#endif
self.backgroundColor = [UIColor colorWithRed:0.8 green:0 blue:0 alpha:1];
self.hidden = YES;