From c943e5f5b1217576d6a4a9c7f3acd8d22923a313 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Tue, 27 May 2025 12:37:27 +0530 Subject: [PATCH] Added Decleration --- .../Components/ScrollView/ScrollView.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts b/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts index d476e33eedae50..36e6cb9f819949 100644 --- a/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts +++ b/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts @@ -19,6 +19,7 @@ import { import {RefreshControlProps} from '../RefreshControl/RefreshControl'; import {Touchable} from '../Touchable/Touchable'; import {ViewProps} from '../View/ViewPropTypes'; +import {View} from '../View/View'; // See https://reactnative.dev/docs/scrollview#contentoffset export interface PointProp { @@ -608,6 +609,19 @@ export interface ScrollViewProps */ contentContainerStyle?: StyleProp | undefined; + /** + * A ref to the inner View element of the ScrollView. This should be used + * instead of calling `getInnerViewRef`. + */ + innerViewRef?: React.RefObject | undefined; + + /** + * A ref to the Native ScrollView component. This ref can be used to call + * all of ScrollView's public methods, in addition to native methods like + * measure, measureLayout, etc. + */ + scrollViewRef?: React.RefObject | undefined; + /** * A floating-point number that determines how quickly the scroll view * decelerates after the user lifts their finger. You may also use string