We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ab1c52 + 68cf4b5 commit a34e144Copy full SHA for a34e144
index.d.ts
@@ -44,6 +44,7 @@ export interface MultiSelectProps {
44
fixedHeight?: boolean;
45
hideTags?: boolean,
46
canAddItems?: boolean;
47
+ onToggleList?: () => void;
48
onAddItem?: (newItems: any[]) => void;
49
onChangeInput?: (text: string) => void;
50
displayKey?: string;
lib/react-native-multi-select.js
@@ -507,7 +507,7 @@ export default class MultiSelect extends Component {
507
<FlatList
508
data={renderItems}
509
extraData={selectedItems}
510
- keyExtractor={item => item[uniqueKey]}
+ keyExtractor={(item, index) => index.toString()}
511
listKey={item => item[uniqueKey]}
512
renderItem={rowData => this._getRow(rowData.item)}
513
{...flatListProps}
0 commit comments