Skip to content

Respect pointerEvents on Android SafeAreaView (#59576) - #59576

Open
zeyap wants to merge 1 commit into
react:mainfrom
zeyap:export-D127611314
Open

zeyap wants to merge 1 commit into
react:mainfrom
zeyap:export-D127611314

Conversation

@zeyap

@zeyap zeyap commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Android SafeAreaView ignored the pointerEvents prop, so a SafeAreaView with pointerEvents="box-none" still caught touches outside its children instead of passing them to the views underneath.

ReactSafeAreaView now implements ReactPointerEventsView and ReactSafeAreaViewManager applies pointerEvents in updateProperties. Without the prop it stays AUTO, so existing behavior is unchanged.

Changelog:
[Android][Fixed] - SafeAreaView now respects pointerEvents

Reviewed By: zeyap

Differential Revision: D127611314

@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 Oct 28, 2026
@meta-codesync

meta-codesync Bot commented Oct 28, 2026

Copy link
Copy Markdown

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

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Visual regression

No visual differences at f5ad69d19a6e.

ios: no capture

Summary:

Android `SafeAreaView` ignored the `pointerEvents` prop, so a `SafeAreaView` with `pointerEvents="box-none"` still caught touches outside its children instead of passing them to the views underneath.

`ReactSafeAreaView` now implements `ReactPointerEventsView` and `ReactSafeAreaViewManager` applies `pointerEvents` in `updateProperties`. Without the prop it stays `AUTO`, so existing behavior is unchanged.

Changelog:
[Android][Fixed] - SafeAreaView now respects pointerEvents

Reviewed By: zeyap

Differential Revision: D127611314
@meta-codesync meta-codesync Bot changed the title Respect pointerEvents on Android SafeAreaView Respect pointerEvents on Android SafeAreaView (#59576) Oct 28, 2026
@zeyap
zeyap force-pushed the export-D127611314 branch from 6e88494 to f5ad69d Compare October 28, 2026 18:12

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant