forked from toystars/react-native-multiple-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
56 lines (53 loc) · 1.88 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
// Type definitions for react-native-multiple-select 0.5
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>;
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;
onAddItem?: (newItems: any[]) => void;
onChangeInput?: (text: string) => void;
displayKey?: string;
textInputProps?: TextInputProps;
flatListProps?: FlatListProps<any>;
filterMethod?: string;
}
export default class MultiSelect extends React.Component<MultiSelectProps> {
getSelectedItemsExt: (items: any[]) => React.ReactNode;
}