Commit 60b0d54
authored
fix(Fabric,iOS): cancel conflicting presses in modals on swipe back gesture (#2943)
## 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
:point_up:
## Test code and steps to reproduce
`Test780` should now work on Fabric
## Checklist
- [x] Included code example that can be used to test this change
- [x] Ensured that CI passes1 parent c188d35 commit 60b0d54
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
0 commit comments