SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

Update View-itest.js for pointerEvents box-only unflattening behavior (#55224)

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

Changelog: [Internal]

D90772188 changed the behavior of views with `pointerEvents="box-only"` to prevent them from being collapsed/flattened. This is intentional because when `important_for_interaction` is applied on a view with `pointerEvents='box-only'`, the view must remain in the hierarchy to correctly signal to the gaze system that its children are not important for interaction.

The test expected the old behavior where `<View pointerEvents="box-only" />` would be collapsed and render `null`. After the C++ change, views with `pointerEvents="box-only"` now always form a stacking context and are not collapsed.

Updated the test to expect the new behavior where `pointerEvents="box-only"` causes views to unflatten, consistent with how `pointerEvents="none"` behaves.

Reviewed By: rubennorte

Differential Revision: D90984297

fbshipit-source-id: 799e4e26b29126386f4fd8183e2ce0b5cb719f9f
F
Fabrizio Cucci committed
3e22873b6d4d5bcd310d308dc3a8f067894d76e9
Parent: 9f686f2
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 1/19/2026, 3:15:35 PM