Skip to content

Commit 61a838d

Browse files
sbuggaymeta-codesync[bot]
authored andcommitted
Compile out RCTUIStatusBarManager (#54998)
Summary: Pull Request resolved: #54998 RCTUIStatusBarManager is unsupported on AppleTV Changelog: [Internal] Reviewed By: Abbondanzo Differential Revision: D89899909 fbshipit-source-id: d4919c087ab99b4f79947ec7d0b43c19a96e2262
1 parent eb1c4c1 commit 61a838d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/react-native/React/Base/RCTUtils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ RCT_EXTERN UIWindow *__nullable RCTKeyWindow(void);
101101
RCT_EXTERN UIViewController *__nullable RCTPresentedViewController(void);
102102

103103
// Retrieve current window UIStatusBarManager
104+
#if !TARGET_OS_TV
104105
RCT_EXTERN UIStatusBarManager *__nullable RCTUIStatusBarManager(void) API_AVAILABLE(ios(13));
106+
#endif
105107

106108
// Does this device support force touch (aka 3D Touch)?
107109
RCT_EXTERN BOOL RCTForceTouchAvailable(void);

packages/react-native/React/Base/RCTUtils.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,10 +635,12 @@ BOOL RCTRunningInAppExtension(void)
635635
return nil;
636636
}
637637

638+
#if !TARGET_OS_TV
638639
UIStatusBarManager *__nullable RCTUIStatusBarManager(void)
639640
{
640641
return RCTKeyWindow().windowScene.statusBarManager;
641642
}
643+
#endif
642644

643645
UIViewController *__nullable RCTPresentedViewController(void)
644646
{

0 commit comments

Comments
 (0)