Permalink
Browse files

RCTRedBox should appear beneath the status bar

Reviewed By: fromcelticpark

Differential Revision: D6370566

fbshipit-source-id: fe59a789113c2e8c24e96e560647efbd8bdfe67b
  • Loading branch information...
adamjernst authored and facebook-github-bot committed Nov 21, 2017
1 parent 9180d4e commit 33cefc176096e03a4b3c3130a70abfabe9d40f38
Showing with 4 additions and 0 deletions.
  1. +4 −0 React/Modules/RCTRedBox.m
@@ -41,7 +41,11 @@ @implementation RCTRedBoxWindow
- (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;

0 comments on commit 33cefc1

Please sign in to comment.