Skip to content

Commit

Permalink
Merge pull request #548 from jemise111/favor-key-extractor
Browse files Browse the repository at this point in the history
Favor key extractor
  • Loading branch information
jemise111 authored Apr 5, 2021
2 parents 1de6c73 + e7fc9ec commit a81dc4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-swipe-list-view",
"version": "3.2.5",
"version": "3.2.6",
"main": "lib/index.js",
"author": "Jesse Sessler <[email protected]>",
"description": "A ListView with rows that swipe open and closed.",
Expand Down

0 comments on commit a81dc4c

Please sign in to comment.