RCTView compiling for AppleTV (#55130)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55130

Compile out unsupported UIKit APIs used by RCTView and it's manager.

Changelog: [internal]

Reviewed By: Abbondanzo

Differential Revision: D90513795

fbshipit-source-id: 64e72cbdae76fbd79914fdc8b6f7affcc2466eac
This commit is contained in:
Devan Buggay authored and meta-codesync[bot] committed 2026-01-13 16:09:38 -08:00
1 parent fce872d2ef
commit 53ab483080
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -910,7 +910,8 @@ static void RCTUpdateShadowPathForView(RCTView *view)
static void RCTUpdateHoverStyleForView(RCTView *view)
{
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 170000 /* __IPHONE_17_0 */
#if !TARGET_OS_TV && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \
__IPHONE_OS_VERSION_MAX_ALLOWED >= 170000 /* __IPHONE_17_0 */
if (@available(iOS 17.0, *)) {
UIHoverStyle *hoverStyle = nil;
if ([view cursor] == RCTCursorPointer) {
@@ -295,6 +295,7 @@ RCT_CUSTOM_VIEW_PROPERTY(accessibilityState, NSDictionary, RCTView)
RCT_CUSTOM_VIEW_PROPERTY(accessibilityShowsLargeContentViewer, BOOL, RCTView)
{
#if !TARGET_OS_TV
if (@available(iOS 13.0, *)) {
BOOL showsLargeContentViewer = json ? [RCTConvert BOOL:json] : defaultView.showsLargeContentViewer;
@@ -306,13 +307,16 @@ RCT_CUSTOM_VIEW_PROPERTY(accessibilityShowsLargeContentViewer, BOOL, RCTView)
view.showsLargeContentViewer = NO;
}
}
#endif
}
RCT_CUSTOM_VIEW_PROPERTY(accessibilityLargeContentTitle, NSString, RCTView)
{
#if !TARGET_OS_TV
if (@available(iOS 13.0, *)) {
view.largeContentTitle = json ? [RCTConvert NSString:json] : defaultView.largeContentTitle;
}
#endif
}
RCT_CUSTOM_VIEW_PROPERTY(nativeID, NSString *, RCTView)