Skip to content

Commit e7fc9ec

Browse files
committed
Favor keyExtractor over key
1 parent c996ead commit e7fc9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/SwipeListView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class SwipeListView extends PureComponent {
376376
this.props.renderHiddenItem(rowData, rowMap);
377377
const { item, index } = rowData;
378378
let { key } = item;
379-
if (!key && this.props.keyExtractor) {
379+
if (this.props.keyExtractor) {
380380
key = this.props.keyExtractor(item, index);
381381
}
382382

0 commit comments

Comments
 (0)