File tree Expand file tree Collapse file tree
packages/react-native/Libraries/Lists Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import type {
1515 ViewabilityConfig ,
1616} from '@react-native/virtualized-lists' ;
1717import type { ScrollViewComponent } from '../Components/ScrollView/ScrollView' ;
18+ import { HostInstance } from '../../types/public/ReactNativeTypes' ;
1819import type { StyleProp } from '../StyleSheet/StyleSheet' ;
1920import type { ViewStyle } from '../StyleSheet/StyleSheetTypes' ;
2021import type { View } from '../Components/View/View' ;
@@ -229,13 +230,10 @@ export abstract class FlatListComponent<
229230 getScrollResponder : ( ) => React . JSX . Element | null | undefined ;
230231
231232 /**
232- * Provides a reference to the underlying host component
233+ * Returns a reference to the underlying native scroll view, or null if the
234+ * native instance is not mounted.
233235 */
234- getNativeScrollRef : ( ) =>
235- | React . ComponentRef < typeof View >
236- | React . ComponentRef < typeof ScrollViewComponent >
237- | null
238- | undefined ;
236+ getNativeScrollRef : ( ) => HostInstance | null ;
239237
240238 getScrollableNode : ( ) => any ;
241239
You can’t perform that action at this time.
0 commit comments