Skip to content

Commit a34e144

Browse files
committed
2 parents 9ab1c52 + 68cf4b5 commit a34e144

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export interface MultiSelectProps {
4444
fixedHeight?: boolean;
4545
hideTags?: boolean,
4646
canAddItems?: boolean;
47+
onToggleList?: () => void;
4748
onAddItem?: (newItems: any[]) => void;
4849
onChangeInput?: (text: string) => void;
4950
displayKey?: string;

lib/react-native-multi-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export default class MultiSelect extends Component {
507507
<FlatList
508508
data={renderItems}
509509
extraData={selectedItems}
510-
keyExtractor={item => item[uniqueKey]}
510+
keyExtractor={(item, index) => index.toString()}
511511
listKey={item => item[uniqueKey]}
512512
renderItem={rowData => this._getRow(rowData.item)}
513513
{...flatListProps}

0 commit comments

Comments
 (0)