mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Compile out RCTUIStatusBarManager (#54998)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54998 RCTUIStatusBarManager is unsupported on AppleTV Changelog: [Internal] Reviewed By: Abbondanzo Differential Revision: D89899909 fbshipit-source-id: d4919c087ab99b4f79947ec7d0b43c19a96e2262
This commit is contained in:
1 parent
eb1c4c198b
commit
61a838d20b
2 files changed
+4
No files matched your search
@@ -101,7 +101,9 @@ RCT_EXTERN UIWindow *__nullable RCTKeyWindow(void);
|
||||
RCT_EXTERN UIViewController *__nullable RCTPresentedViewController(void);
|
||||
|
||||
// Retrieve current window UIStatusBarManager
|
||||
#if !TARGET_OS_TV
|
||||
RCT_EXTERN UIStatusBarManager *__nullable RCTUIStatusBarManager(void) API_AVAILABLE(ios(13));
|
||||
#endif
|
||||
|
||||
// Does this device support force touch (aka 3D Touch)?
|
||||
RCT_EXTERN BOOL RCTForceTouchAvailable(void);
|
||||
|
||||
@@ -635,10 +635,12 @@ UIWindow *__nullable RCTKeyWindow(void)
|
||||
return nil;
|
||||
}
|
||||
|
||||
#if !TARGET_OS_TV
|
||||
UIStatusBarManager *__nullable RCTUIStatusBarManager(void)
|
||||
{
|
||||
return RCTKeyWindow().windowScene.statusBarManager;
|
||||
}
|
||||
#endif
|
||||
|
||||
UIViewController *__nullable RCTPresentedViewController(void)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user