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
This commit is contained in:
Fabrizio Cucci authored and meta-codesync[bot] committed 2026-01-26 13:32:38 -08:00
1 parent 3e62eb8e27
commit 3368e9ea0a
1 file changed
+1 -1
@@ -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.