Skip to content

Commit 33cefc1

Browse files
adamjernstfacebook-github-bot
authored andcommittedNov 21, 2017
RCTRedBox should appear beneath the status bar
Reviewed By: fromcelticpark Differential Revision: D6370566 fbshipit-source-id: fe59a789113c2e8c24e96e560647efbd8bdfe67b
1 parent 9180d4e commit 33cefc1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎React/Modules/RCTRedBox.m

+4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ @implementation RCTRedBoxWindow
4141
- (instancetype)initWithFrame:(CGRect)frame
4242
{
4343
if ((self = [super initWithFrame:frame])) {
44+
#if TARGET_OS_TV
4445
self.windowLevel = UIWindowLevelAlert + 1000;
46+
#else
47+
self.windowLevel = UIWindowLevelStatusBar - 1;
48+
#endif
4549
self.backgroundColor = [UIColor colorWithRed:0.8 green:0 blue:0 alpha:1];
4650
self.hidden = YES;
4751

0 commit comments

Comments
 (0)