From 3368e9ea0ac19fc4417d0a366459ef5b0d4885a0 Mon Sep 17 00:00:00 2001 From: Fabrizio Cucci Date: Mon, 26 Jan 2026 13:32:38 -0800 Subject: [PATCH] Fix IMPORTANT_FOR_INTERACTION_EXCLUDE_DESCENDANTS value to match HorizonOS API (#55300) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55300 Changelog: [Internal] The `IMPORTANT_FOR_INTERACTION_EXCLUDE_DESCENDANTS` constant was incorrectly set to `0x8`. This value was sourced from the "UI Understanding APIs TDD" design document, which had an outdated/incorrect value. The correct value is `0x4`, as defined in the official HorizonOS API at `horizonos.view.ViewExt.IMPORTANT_FOR_INTERACTION_EXCLUDE_DESCENDANTS`. References: - Incorrect source (TDD doc): https://docs.google.com/document/d/1YQ5rel1bvZboTfs1-8uPWJnOAyfl_fSm9oILjU-2lbg/edit?tab=t.0 - Correct source (ViewExt.java): https://www.internalfb.com/code/aosp-vendor-meta-coresdk/[oculus-14.0]/api-src/volumetricwindow/java/horizonos/view/ViewExt.java?lines=50 Reviewed By: twasilczyk Differential Revision: D91500494 fbshipit-source-id: fac8546dba193a510c0c2e1badd512126eaf20f8 --- .../facebook/react/views/view/ImportantForInteractionHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ImportantForInteractionHelper.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ImportantForInteractionHelper.kt index 0935b0b4ef7..1628f6526f4 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ImportantForInteractionHelper.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ImportantForInteractionHelper.kt @@ -29,7 +29,7 @@ internal object ImportantForInteractionHelper { const val IMPORTANT_FOR_INTERACTION_NO: Int = 0x2 /** Descendants of this view should be excluded from interaction handling. */ - const val IMPORTANT_FOR_INTERACTION_EXCLUDE_DESCENDANTS: Int = 0x8 + const val IMPORTANT_FOR_INTERACTION_EXCLUDE_DESCENDANTS: Int = 0x4 /** * Sets the important_for_interaction tag on a view based on the given [PointerEvents] value.