File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3643,11 +3643,11 @@ export interface FlatListStatic<ItemT> extends React.ComponentClass<FlatListProp
36433643 scrollToEnd : ( params ?: { animated ?: boolean } ) => void ;
36443644
36453645 /**
3646- * Scrolls to the item at a the specified index such that it is positioned in the viewable area
3647- * such that ` viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the middle.
3648- * May be janky without ` getItemLayout` prop.
3646+ * Scrolls to the item at the specified index such that it is positioned in the viewable area
3647+ * such that viewPosition 0 places it at the top, 1 at the bottom, and 0.5 centered in the middle.
3648+ * Cannot scroll to locations outside the render window without specifying the getItemLayout prop.
36493649 */
3650- scrollToIndex : ( params : { animated ?: boolean ; index : number ; viewPosition ?: number } ) => void ;
3650+ scrollToIndex : ( params : { animated ?: boolean ; index : number ; viewOffset : number ; viewPosition ?: number } ) => void ;
36513651
36523652 /**
36533653 * Requires linear scan through data - use `scrollToIndex` instead if possible.
You can’t perform that action at this time.
0 commit comments