Skip to content

Commit 4e64a52

Browse files
committed
removing const {index} = info;
1 parent f5b3581 commit 4e64a52

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Libraries/Lists/FlatList.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,10 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
643643
</View>
644644
);
645645
} else {
646-
const {index} = info;
647-
648646
const accessibilityCollectionItem = {
649647
...defaultAccessibilityCollectionItem,
650-
rowIndex: index,
651-
itemIndex: index,
648+
rowIndex: info.index,
649+
itemIndex: info.index,
652650
};
653651

654652
return renderer({

0 commit comments

Comments
 (0)