-
Notifications
You must be signed in to change notification settings - Fork 317
/
index.d.ts
60 lines (57 loc) · 2 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Type definitions for react-native-multiple-select
import * as React from "react";
import { ViewStyle, TextStyle, TextInputProps, StyleProp, FlatListProps } from 'react-native';
export interface MultiSelectProps {
single?: boolean;
selectedItems?: any[];
items: any[];
uniqueKey?: string,
tagBorderColor?: string;
tagTextColor?: string;
fontFamily?: string;
tagRemoveIconColor?: string;
onSelectedItemsChange: ((items: any[]) => void),
selectedItemFontFamily?: string;
selectedItemTextColor?: string;
itemFontFamily?: string;
itemTextColor?: string;
itemFontSize?: number;
selectedItemIconColor?: string;
searchIcon?: React.ReactNode;
searchInputPlaceholderText?: string;
searchInputStyle?: StyleProp<TextStyle>;
selectText?: string;
styleDropdownMenu?: StyleProp<ViewStyle>;
styleDropdownMenuSubsection?: StyleProp<ViewStyle>;
styleIndicator?: StyleProp<ViewStyle>;
styleInputGroup?: StyleProp<ViewStyle>;
styleItemsContainer?: StyleProp<ViewStyle>;
styleListContainer?: StyleProp<ViewStyle>;
styleMainWrapper?: StyleProp<ViewStyle>;
styleRowList?: StyleProp<ViewStyle>;
styleSelectorContainer?: StyleProp<ViewStyle>;
styleTextDropdown?: StyleProp<TextStyle>;
styleTextDropdownSelected?: StyleProp<TextStyle>;
altFontFamily?: string;
hideSubmitButton?: boolean;
hideDropdown?: boolean;
submitButtonColor?: string;
submitButtonText?: string;
textColor?: string;
fontSize?: number;
fixedHeight?: boolean;
hideTags?: boolean,
canAddItems?: boolean;
onToggleList?: () => void;
onAddItem?: (newItems: any[]) => void;
onChangeInput?: (text: string) => void;
displayKey?: string;
textInputProps?: TextInputProps;
flatListProps?: FlatListProps<any>;
filterMethod?: string;
noItemsText?: string;
selectedText?: string;
}
export default class MultiSelect extends React.Component<MultiSelectProps> {
getSelectedItemsExt: (items: any[]) => React.ReactNode;
}