Commit b8d3dbb
committed
Wire pointer capture event props through the Fabric view config
Fabric declared onGotPointerCapture / onLostPointerCapture and the capture-phase pointer handlers in its view config, but never parsed them.
Fill in both prop parsing paths (convertRawProp and the iterator setProp), add the two missing capture phase offsets, and register the got/lost-capture bubbling event types and validAttributes on iOS and Android. Android was also missing the bubble-phase onPointerDown, onPointerUp and onPointerCancel attributes.1 parent 27e83d0 commit b8d3dbb
15 files changed
Lines changed: 78 additions & 5 deletions
File tree
- packages/react-native
- Libraries/NativeComponent
- ReactAndroid/src/main/java/com/facebook/react/uimanager
- ReactCommon/react/renderer/components/view
- scripts/cxx-api/api-snapshots
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
430 | 434 | | |
431 | 435 | | |
| 436 | + | |
| 437 | + | |
432 | 438 | | |
433 | 439 | | |
434 | 440 | | |
| |||
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
416 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
417 | 418 | | |
418 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
419 | 422 | | |
420 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
421 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
422 | 430 | | |
| 431 | + | |
423 | 432 | | |
| 433 | + | |
424 | 434 | | |
425 | 435 | | |
426 | 436 | | |
| |||
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
782 | 794 | | |
783 | 795 | | |
784 | 796 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
458 | 459 | | |
| 460 | + | |
459 | 461 | | |
460 | 462 | | |
461 | 463 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
521 | 544 | | |
522 | 545 | | |
523 | 546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8060 | 8060 | | |
8061 | 8061 | | |
8062 | 8062 | | |
| 8063 | + | |
8063 | 8064 | | |
| 8065 | + | |
8064 | 8066 | | |
8065 | 8067 | | |
8066 | 8068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7824 | 7824 | | |
7825 | 7825 | | |
7826 | 7826 | | |
| 7827 | + | |
7827 | 7828 | | |
| 7829 | + | |
7828 | 7830 | | |
7829 | 7831 | | |
7830 | 7832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8051 | 8051 | | |
8052 | 8052 | | |
8053 | 8053 | | |
| 8054 | + | |
8054 | 8055 | | |
| 8056 | + | |
8055 | 8057 | | |
8056 | 8058 | | |
8057 | 8059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10083 | 10083 | | |
10084 | 10084 | | |
10085 | 10085 | | |
| 10086 | + | |
10086 | 10087 | | |
| 10088 | + | |
10087 | 10089 | | |
10088 | 10090 | | |
10089 | 10091 | | |
| |||
0 commit comments