Commit b1bbe1e
Fix execution of early InteropEvents (#48823)
Summary:
This diff is fixing the execution of Events that are sent early in the rendering of surfaces.
This diff fixes a bug in the queueing of events that are built with not surfaceId (-1), the fixes is to call getSurfaceManagerForView() to retrieve the proper surfaceId (as we do in the execution of events)
calling getSurfaceManagerForView() has a perf hit, we believe this won't be a problem because this method will only be called in edge cases (no surfaceId and early execution of events)
changelog: [Android][Fixed] Fix execution of early InteropEvents
Differential Revision: D684548111 parent 9afad52 commit b1bbe1e
File tree
1 file changed
+11
-8
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting
1 file changed
+11
-8
lines changedLines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 334 | + | |
| 335 | + | |
339 | 336 | | |
340 | 337 | | |
341 | | - | |
| 338 | + | |
342 | 339 | | |
343 | 340 | | |
344 | 341 | | |
| |||
458 | 455 | | |
459 | 456 | | |
460 | 457 | | |
461 | | - | |
| 458 | + | |
| 459 | + | |
462 | 460 | | |
463 | | - | |
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
467 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
468 | 471 | | |
0 commit comments