Commit e926ad0
Allow overriding the horizontal scroll position restore (#54115)
Summary:
Pull Request resolved: #54115
Horizontal scroll view extensions should be able to customize the scrolling behavior for state restores. This adds the `restoreScrollTo` function that will be called to restore the scroll position to the location provided by the shadow node state.
Changelog: [Internal]
Reviewed By: rozele
Differential Revision: D84310601
fbshipit-source-id: 007caa3d0922a5430ffc6f970eebb180a112f8941 parent 78bdf58 commit e926ad0
File tree
2 files changed
+6
-1
lines changed- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/views/scroll
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5618 | 5618 | | |
5619 | 5619 | | |
5620 | 5620 | | |
| 5621 | + | |
5621 | 5622 | | |
5622 | 5623 | | |
5623 | 5624 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1660 | 1660 | | |
1661 | 1661 | | |
1662 | 1662 | | |
1663 | | - | |
| 1663 | + | |
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1667 | 1671 | | |
1668 | 1672 | | |
1669 | 1673 | | |
| |||
0 commit comments