mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
<ScrollView/>: Add static ViewConfig for maintainVisibleContentPosition
Summary: This prop was introduced for horizontal and vertical scrollview in D40642469. That diff updated the native view configs only. **Note:** This prop did not work for bridgeless mode. Partial fix: Add the prop to vertical scrollview: D54223244 Full fix: this diff. Changelog: [Internal] Reviewed By: javache Differential Revision: D56854757 fbshipit-source-id: aff2da407f4df4575ceb66d3d381a144fa07a8e9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0a8e2c81a9
commit
35f1e308e8
Vendored
+1
@@ -23,6 +23,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
|
||||
validAttributes: {
|
||||
decelerationRate: true,
|
||||
disableIntervalMomentum: true,
|
||||
maintainVisibleContentPosition: true,
|
||||
endFillColor: {process: require('../../StyleSheet/processColor').default},
|
||||
fadingEdgeLength: true,
|
||||
nestedScrollEnabled: true,
|
||||
|
||||
Reference in New Issue
Block a user