diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index dafd1d226203bd..e2abd1a1738607 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -944,6 +944,7 @@ class VirtualizedList extends React.PureComponent { ? -1 : initialNumToRenderOrDefault(this.props.initialNumToRender) - 1; const {first, last} = this.state; + // scroll to top optimization. The first page is always rendered. if (!this.props.inverted) { this._pushCells( cells, @@ -1006,6 +1007,7 @@ class VirtualizedList extends React.PureComponent { firstAfterInitial, last, ); + // scroll to bottom optimization. The last page is always rendered in an inverted flatlist. if (this.props.inverted) { this._pushCells( cells,