diff --git a/components/SwipeListView.js b/components/SwipeListView.js index 44de832..07dc767 100644 --- a/components/SwipeListView.js +++ b/components/SwipeListView.js @@ -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); } diff --git a/package.json b/package.json index 57ce830..44751e8 100644 --- a/package.json +++ b/package.json @@ -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 ", "description": "A ListView with rows that swipe open and closed.",