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
This commit is contained in:
Devan Buggay authored and meta-codesync[bot] committed 2026-01-13 16:09:38 -08:00
1 parent 94383613d8
commit 8c058b4a4f
2 files changed
+4

No files matched your search

@@ -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;
}
@@ -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;