Skip to content

Commit 7c67cbd

Browse files
labtoriemarcocesarato
authored andcommitted
Fixed onViewableItemsChanged function
1 parent 6b660c1 commit 7c67cbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/BigList.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ class BigList extends PureComponent {
384384
if (type === BigListItemType.ITEM) {
385385
return {
386386
item: this.getItem({ section, index }),
387+
section: section,
387388
key: key,
388389
index: (section + 1) * index,
389390
isViewable: this.isVisible({ section, index }),
@@ -581,7 +582,7 @@ class BigList extends PureComponent {
581582
let s = 0;
582583

583584
while (s <= section) {
584-
const rows = Math.ceil(sections[section] / numColumns);
585+
const rows = Math.ceil(sections[s] / numColumns);
585586
if (rows === 0) {
586587
s += 1;
587588
continue;

0 commit comments

Comments
 (0)