diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 19f7a79bc2d71f..0638a6b208870a 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -235,7 +235,7 @@ class VirtualizedList extends React.PureComponent { `scrollToIndex out of range: ${index} vs ${getItemCount(data) - 1}`, ); invariant( - getItemLayout || index < this._highestMeasuredFrameIndex, + getItemLayout || index <= this._highestMeasuredFrameIndex, 'scrollToIndex should be used in conjunction with getItemLayout, ' + 'otherwise there is no way to know the location of an arbitrary index.', );