From 8c058b4a4fd8c616a99ef5bcf51130fb414aaa43 Mon Sep 17 00:00:00 2001 From: Devan Buggay Date: Tue, 13 Jan 2026 16:09:38 -0800 Subject: [PATCH] Compile out UIView mulitpleTouchEnabled for AppleTV (#55127) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55127 `multipleTouchEnabled` is not available for UIViews for AppleTV, compiling them out. Changelog: [internal] Reviewed By: Abbondanzo Differential Revision: D90513833 fbshipit-source-id: fef3422494c4b9c876919ffb06a83072adf84810 --- .../Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm | 2 ++ packages/react-native/React/Views/RCTComponentData.mm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm index 9895b22dbfb..a3947e808a3 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm @@ -67,7 +67,9 @@ const CGFloat BACKGROUND_COLOR_ZPOSITION = -1024.0f; if (self = [super initWithFrame:frame]) { _props = ViewShadowNode::defaultSharedProps(); _reactSubviews = [NSMutableArray new]; +#if !TARGET_OS_TV self.multipleTouchEnabled = YES; +#endif _useCustomContainerView = NO; _removeClippedSubviews = NO; } diff --git a/packages/react-native/React/Views/RCTComponentData.mm b/packages/react-native/React/Views/RCTComponentData.mm index 36de415c2b4..64190118a88 100644 --- a/packages/react-native/React/Views/RCTComponentData.mm +++ b/packages/react-native/React/Views/RCTComponentData.mm @@ -88,7 +88,9 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init) UIView *view = [self.manager view]; view.reactTag = tag; view.rootTag = rootTag; +#if !TARGET_OS_TV view.multipleTouchEnabled = YES; +#endif view.userInteractionEnabled = YES; // required for touch handling view.layer.allowsGroupOpacity = YES; // required for touch handling return view;