From 33cefc176096e03a4b3c3130a70abfabe9d40f38 Mon Sep 17 00:00:00 2001 From: Adam Ernst Date: Mon, 20 Nov 2017 18:12:42 -0800 Subject: [PATCH] RCTRedBox should appear beneath the status bar Reviewed By: fromcelticpark Differential Revision: D6370566 fbshipit-source-id: fe59a789113c2e8c24e96e560647efbd8bdfe67b --- React/Modules/RCTRedBox.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index ad1a835c5f3283..cb20776b9660ab 100644 --- a/React/Modules/RCTRedBox.m +++ b/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;