@react-native/virtualized-lists 0.72.1 → 0.72.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -554,8 +554,6 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
554
554
  const onEndReachedThreshold = onEndReachedThresholdOrDefault(
555
555
  props.onEndReachedThreshold,
556
556
  );
557
- this._updateViewableItems(props, cellsAroundViewport);
558
-
559
557
  const {contentLength, offset, visibleLength} = this._scrollMetrics;
560
558
  const distanceFromEnd = contentLength - visibleLength - offset;
561
559
 
@@ -1714,6 +1712,8 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
1714
1712
  };
1715
1713
 
1716
1714
  _updateCellsToRender = () => {
1715
+ this._updateViewableItems(this.props, this.state.cellsAroundViewport);
1716
+
1717
1717
  this.setState((state, props) => {
1718
1718
  const cellsAroundViewport = this._adjustCellsAroundViewport(
1719
1719
  props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/virtualized-lists",
3
- "version": "0.72.1",
3
+ "version": "0.72.2",
4
4
  "description": "Virtualized lists for React Native.",
5
5
  "repository": {
6
6
  "type": "git",