Skip to content

Commit

Permalink
Merge pull request #182 from vbranco/master
Browse files Browse the repository at this point in the history
Solving FlatList keyExtractor Error
  • Loading branch information
AugustoAleGon committed May 4, 2022
2 parents 5182ce4 + 6e47a75 commit e9da640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/react-native-multi-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export default class MultiSelect extends Component {
<FlatList
data={renderItems}
extraData={selectedItems}
keyExtractor={item => item[uniqueKey]}
keyExtractor={(item, index) => index.toString()}
listKey={item => item[uniqueKey]}
renderItem={rowData => this._getRow(rowData.item)}
{...flatListProps}
Expand Down

0 comments on commit e9da640

Please sign in to comment.