@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.
- package/Lists/VirtualizedList.js +2 -2
- package/package.json +1 -1
package/Lists/VirtualizedList.js
CHANGED
|
@@ -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,
|