Skip to content

fix(Fabric,iOS): cancel conflicting presses in modals on swipe back gesture #2943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented May 26, 2025

Description

Previously, when looking for RCTSurfaceTouchHanlder we've looked only
for RCTSurfaceView, however on Fabric in modal view hierarchies,
the RCTSurfaceView can not be reached directly when iterating
over UIKit view ancestor chain. However, we do attach
RCTSurfaceTouchHanlder to every RNSModalScreen anyway
& we can use that to dispatch / cancel appropriate events.

Changes

☝️

Test code and steps to reproduce

Test780 should now work on Fabric

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

Previously, when looking for `RCTSurfaceTouchHanlder` we've looked only
for `RCTSurfaceView`, however on Fabric in modal view hierarchies,
the `RCTSurfaceView` can not be reached directly when iterating
over UIKit view ancestor chain. However, we do attach
`RCTSurfaceTouchHanlder` to every `RNSModalScreen` anyway
& we can use that to dispatch / cancel appropriate events.
@kligarski kligarski merged commit 60b0d54 into main May 26, 2025
6 checks passed
@kligarski kligarski deleted the @kkafar/test-780-before-release branch May 26, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants