Skip to content

Commit

Permalink
RCTRedBox should appear beneath the status bar
Browse files Browse the repository at this point in the history
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 33cefc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions React/Modules/RCTRedBox.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 33cefc1

Please sign in to comment.