Skip to content

Conversation

@fabriziocucci
Copy link
Contributor

Summary:
Changelog: [Internal]

This change ensures that views with pointerEvents set to 'box-only' are not collapsed, preserving the parent-children relationship in the view hierarchy.

This is necessary because when importantForInteraction is applied on a view with pointerEvents='box-only', the view must remain in the hierarchy to correctly signal to its children that they are not important for interaction. Without this fix, the view could be collapsed during flattening, breaking the propagation of the importantForInteraction property to descendant views.

Differential Revision: D90772188

Fabrizio Cucci and others added 2 commits January 15, 2026 05:31
…ckage

Summary:
This change makes `ImportantForInteractionHelper` internal to avoid exposing it as part of the public API. The class is moved from `com.facebook.react.uimanager` to `com.facebook.react.views.view` package since it's only used by `ReactViewGroup` and `ReactViewManager` within that package.

This reduces the public API surface of ReactAndroid and keeps implementation details private.

Differential Revision: D90767295
Summary:
Changelog: [Internal]

This change ensures that views with `pointerEvents` set to `'box-only'` are not collapsed, preserving the parent-children relationship in the view hierarchy.

This is necessary because when `importantForInteraction` is applied on a view with `pointerEvents='box-only'`, the view must remain in the hierarchy to correctly signal to its children that they are not important for interaction. Without this fix, the view could be collapsed during flattening, breaking the propagation of the `importantForInteraction` property to descendant views.

Differential Revision: D90772188
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 15, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 15, 2026

@fabriziocucci has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90772188.

@meta-codesync meta-codesync bot closed this in 0649717 Jan 16, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 16, 2026

This pull request has been merged in 0649717.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 16, 2026
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @fabriziocucci in 0649717

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants