Skip to content

Commit

Permalink
Favor keyExtractor over key
Browse files Browse the repository at this point in the history
  • Loading branch information
jemise111 committed Apr 5, 2021
1 parent c996ead commit e7fc9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/SwipeListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class SwipeListView extends PureComponent {
this.props.renderHiddenItem(rowData, rowMap);
const { item, index } = rowData;
let { key } = item;
if (!key && this.props.keyExtractor) {
if (this.props.keyExtractor) {
key = this.props.keyExtractor(item, index);
}

Expand Down

0 comments on commit e7fc9ec

Please sign in to comment.