Skip to content

Commit 718b6b7

Browse files
authored
Update VirtualizedList.js
1 parent cf819bf commit 718b6b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Lists/VirtualizedList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
326326
const {animated, index, viewOffset, viewPosition} = params;
327327
invariant(
328328
index >= 0 && index < getItemCount(data),
329-
`scrollToIndex out of range: ${index} vs ${getItemCount(data) - 1}`,
329+
`scrollToIndex out of range: requested index ${index} but maximum is ${getItemCount(data) - 1}`,
330330
);
331331
if (!getItemLayout && index > this._highestMeasuredFrameIndex) {
332332
invariant(

0 commit comments

Comments
 (0)