File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/react-native/Libraries/Components/ScrollView Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {
1919import { RefreshControlProps } from '../RefreshControl/RefreshControl' ;
2020import { Touchable } from '../Touchable/Touchable' ;
2121import { ViewProps } from '../View/ViewPropTypes' ;
22+ import { View } from '../View/View' ;
2223
2324// See https://reactnative.dev/docs/scrollview#contentoffset
2425export interface PointProp {
@@ -608,6 +609,19 @@ export interface ScrollViewProps
608609 */
609610 contentContainerStyle ?: StyleProp < ViewStyle > | undefined ;
610611
612+ /**
613+ * A ref to the inner View element of the ScrollView. This should be used
614+ * instead of calling `getInnerViewRef`.
615+ */
616+ innerViewRef ?: React . RefObject < View > | undefined ;
617+
618+ /**
619+ * A ref to the Native ScrollView component. This ref can be used to call
620+ * all of ScrollView's public methods, in addition to native methods like
621+ * measure, measureLayout, etc.
622+ */
623+ scrollViewRef ?: React . RefObject < ScrollView > | undefined ;
624+
611625 /**
612626 * A floating-point number that determines how quickly the scroll view
613627 * decelerates after the user lifts their finger. You may also use string
You can’t perform that action at this time.
0 commit comments