Skip to content

Commit 1688a52

Browse files
sbuggayfacebook-github-bot
authored andcommitted
Compile out UIWindowLevelStatusBar usage
Summary: `UIWindowLevelStatusBar` is unsupported on AppleTV. Adding a platform guard here. Changelog: [Internal] Differential Revision: D89820480
1 parent 2b74f98 commit 1688a52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native/React/CoreModules/RCTDevLoadingView.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ - (void)showMessage:(NSString *)message
183183
} else {
184184
self->_window = [[UIWindow alloc] init];
185185
}
186+
#if !TARGET_OS_TV
186187
self->_window.windowLevel = UIWindowLevelStatusBar + 1;
188+
#endif
187189
self->_window.rootViewController = [UIViewController new];
188190
[self->_window.rootViewController.view addSubview:self->_container];
189191
}

0 commit comments

Comments
 (0)