Skip to content

Commit 1c3a5e1

Browse files
sbuggaymeta-codesync[bot]
authored andcommitted
Compile out UIWindowLevelStatusBar usage (#54985)
Summary: Pull Request resolved: #54985 `UIWindowLevelStatusBar` is unsupported on AppleTV. Adding a platform guard here. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D89820480 fbshipit-source-id: fa77a8ac3904549d93c1cb9ee518df522c8aedb5
1 parent cb3015d commit 1c3a5e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)