Skip to content

Commit

Permalink
Update VirtualizedList.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak authored Aug 7, 2019
1 parent cf819bf commit 718b6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
const {animated, index, viewOffset, viewPosition} = params;
invariant(
index >= 0 && index < getItemCount(data),
`scrollToIndex out of range: ${index} vs ${getItemCount(data) - 1}`,
`scrollToIndex out of range: requested index ${index} but maximum is ${getItemCount(data) - 1}`,
);
if (!getItemLayout && index > this._highestMeasuredFrameIndex) {
invariant(
Expand Down

0 comments on commit 718b6b7

Please sign in to comment.