-
Notifications
You must be signed in to change notification settings - Fork 51
/
index.d.ts
56 lines (51 loc) · 1.87 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-dropdown-autocomplete 1.0
import * as React from 'react';
import { ViewStyle, TextStyle, StyleProp, KeyboardTypeOptions } from 'react-native';
type AutocompleteProps = {
autoCorrect?: boolean;
keyboardType?: KeyboardTypeOptions;
highlightText?: boolean;
highLightColor?: string;
rightContent?: boolean;
resetOnSelect?: boolean;
minimumCharactersCount?: number;
waitInterval?: number;
placeholder?: string;
placeholderColor?: string;
spinnerSize?: string;
spinnerColor?: string;
listHeader?: string;
fetchDataUrl?: string;
noDataText?: string;
initialValue?: string;
inputContainerStyle?: StyleProp<ViewStyle>;
disableFullscreenUI?: boolean;
inputStyle?: StyleProp<TextStyle>;
spinnerStyle?: StyleProp<ViewStyle>;
noDataTextStyle?: StyleProp<TextStyle>;
separatorStyle?: StyleProp<ViewStyle>;
listFooterStyle?: StyleProp<ViewStyle>;
listHeaderStyle?: StyleProp<ViewStyle>;
rightContentStyle?: StyleProp<ViewStyle>;
rightContentItemStyle?: StyleProp<TextStyle>;
listHeaderTextStyle?: StyleProp<TextStyle>;
overlayStyle?: StyleProp<TextStyle>;
pickerStyle?: StyleProp<TextStyle>;
containerStyle?: StyleProp<ViewStyle>;
scrollStyle?: StyleProp<ViewStyle>;
scrollToInput?: (ev: any) => void;
handleSelectItem: (item: any, index: number) => void;
onDropdownShow?: () => void;
onDropdownClose?: () => void;
onChangeText?: (search: string) => void;
renderIcon?: () => void;
valueExtractor?: (item: any) => void;
rightTextExtractor?: (item: any) => void;
fetchData?: (search: string) => Promise<any[]>;
}
export class Autocomplete extends React.Component<AutocompleteProps, any> {
clearInput(): void;
}
export function withKeyboardAwareScrollView<P>(
component: React.ComponentType<P>
): React.ComponentType<P>;