Commit aa85da3
Support loading and assigning scroll state from scroll view helper (#53999)
Summary:
Pull Request resolved: #53999
Update the `ScrollViewHelper` class to support reading the scroll state from the provided `stateWrapper` and assigning it to the view implementing the `HasScrollState` interface.
This will be used in a future diff to implement scroll state loading on the scroll view component in the scroll state setter function. This enables having one implementation of the state loading for all variants of the scroll view (vertical and horizontal scroll views).
Changelog: [Internal]
Reviewed By: mdvacca
Differential Revision: D83247018
fbshipit-source-id: 44f10edab2341981b85d6ab8b83c7bea96c1e09d1 parent aa492fa commit aa85da3
4 files changed
Lines changed: 74 additions & 16 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/views/scroll
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5636 | 5636 | | |
5637 | 5637 | | |
5638 | 5638 | | |
| 5639 | + | |
5639 | 5640 | | |
5640 | 5641 | | |
5641 | 5642 | | |
| |||
5775 | 5776 | | |
5776 | 5777 | | |
5777 | 5778 | | |
| 5779 | + | |
5778 | 5780 | | |
5779 | 5781 | | |
5780 | 5782 | | |
| |||
5879 | 5881 | | |
5880 | 5882 | | |
5881 | 5883 | | |
| 5884 | + | |
5882 | 5885 | | |
5883 | 5886 | | |
5884 | 5887 | | |
| |||
5896 | 5899 | | |
5897 | 5900 | | |
5898 | 5901 | | |
| 5902 | + | |
| 5903 | + | |
| 5904 | + | |
| 5905 | + | |
| 5906 | + | |
| 5907 | + | |
| 5908 | + | |
| 5909 | + | |
| 5910 | + | |
| 5911 | + | |
| 5912 | + | |
| 5913 | + | |
5899 | 5914 | | |
5900 | 5915 | | |
5901 | 5916 | | |
5902 | 5917 | | |
| 5918 | + | |
5903 | 5919 | | |
5904 | 5920 | | |
| 5921 | + | |
5905 | 5922 | | |
5906 | 5923 | | |
5907 | 5924 | | |
5908 | 5925 | | |
5909 | 5926 | | |
5910 | 5927 | | |
| 5928 | + | |
| 5929 | + | |
5911 | 5930 | | |
5912 | 5931 | | |
5913 | 5932 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1652 | 1657 | | |
1653 | 1658 | | |
1654 | 1659 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1470 | 1475 | | |
1471 | 1476 | | |
1472 | 1477 | | |
| |||
Lines changed: 45 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
| |||
399 | 404 | | |
400 | 405 | | |
401 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
402 | 430 | | |
403 | 431 | | |
404 | 432 | | |
| |||
596 | 624 | | |
597 | 625 | | |
598 | 626 | | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
614 | 643 | | |
615 | 644 | | |
616 | 645 | | |
| |||
632 | 661 | | |
633 | 662 | | |
634 | 663 | | |
635 | | - | |
| 664 | + | |
636 | 665 | | |
637 | 666 | | |
638 | 667 | | |
| |||
0 commit comments