mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Fix react-native FlatList scrollToItem method signature
This commit is contained in:
Vendored
+1
-1
@@ -3614,7 +3614,7 @@ export interface FlatListStatic<ItemT> extends React.ComponentClass<FlatListProp
|
||||
* Requires linear scan through data - use `scrollToIndex` instead if possible.
|
||||
* May be janky without `getItemLayout` prop.
|
||||
*/
|
||||
scrollToItem: (params: { animated?: boolean; index: number; viewPosition?: number }) => void;
|
||||
scrollToItem: (params: { animated?: boolean; item: ItemT; viewPosition?: number }) => void;
|
||||
|
||||
/**
|
||||
* Scroll to a specific content pixel offset, like a normal `ScrollView`.
|
||||
|
||||
Reference in New Issue
Block a user