fix(android): honor pointer events on Lottie views - #1472
Open
huytdps13400 wants to merge 1 commit into
Open
huytdps13400 wants to merge 1 commit into
huytdps13400 wants to merge 1 commit into
Conversation
huytdps13400
force-pushed
the
fix/android-pointer-events
branch
from
October 5, 2026 06:54
047cc98 to
853b783
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An Android Lottie overlay with
style={{ pointerEvents: 'none' }}still captures React Native's touch target, preventing buttons underneath it from receiving presses. The same overlay made withViewpasses the touches through.This gives the Android animation view a
ReactPointerEventsViewimplementation and forwards the prop through both view managers. The Fabric spec explicitly declares the prop so its generated delegate dispatches updates. Removing the prop restoresauto. The example app now includes a Pointer events screen with covered buttons and a nativeViewcontrol.Fixes #1294.
Verification
2d60a7b), React Native 0.84.1 / Fabric / Hermes, Android 12L arm64 emulator: Lottie blocked the underlying button for bothnoneandbox-none, while theViewcontrol passed the touches through.none,auto,box-none,box-only, updatednone, and removal of the prop. Also opened the integrated example from the component picker and repeated the initial pass-through check.The local baseline and patched builds both needed Foojay resolver 1.0.0 in React Native's installed Gradle plugin to provision JDK 17 under Gradle 9. That dependency-only environment workaround is not included in this PR.
To repeat the manual regression, open Pointer events in the example app, wait for
loaded: true, select each mode, and tap the center of both colored regions. Both counters should increment fornone/box-noneand stay unchanged forauto/box-only/unset.