Skip to content

Commit a6908ad

Browse files
riteshshukla04facebook-github-bot
authored andcommitted
Add pending declaration for ScrollView (#51613)
Summary: Fixes #51548 ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [General][ADDED] Added more Pending Decleration for ScrollView Pull Request resolved: #51613 Test Plan: Can be tested on RNTester with ScrollView Reviewed By: cortinico Differential Revision: D75516801 Pulled By: rshest fbshipit-source-id: 87d6f68ab0a3ffd50af57b5eeaf313da4bf7ed98
1 parent e324874 commit a6908ad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
import {RefreshControlProps} from '../RefreshControl/RefreshControl';
2020
import {Touchable} from '../Touchable/Touchable';
2121
import {ViewProps} from '../View/ViewPropTypes';
22+
import {View} from '../View/View';
2223

2324
// See https://reactnative.dev/docs/scrollview#contentoffset
2425
export 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

0 commit comments

Comments
 (0)