Skip to content

Commit 9adcac3

Browse files
sbuggayfacebook-github-bot
authored andcommitted
Compile out RCTUIStatusBarManager (#54998)
Summary: RCTUIStatusBarManager is unsupported on AppleTV Changelog: [Internal] Differential Revision: D89899909
1 parent 1d42b6d commit 9adcac3

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)