|
| 1 | +// Type definitions for react-native-dropdown-autocomplete 1.0 |
| 2 | + |
| 3 | +import * as React from 'react'; |
| 4 | + |
| 5 | +type AutocompleteProps = { |
| 6 | + autoCorrect?: boolean, |
| 7 | + highlightText?: boolean, |
| 8 | + rightContent?: boolean, |
| 9 | + resetOnSelect?: boolean, |
| 10 | + minimumCharactersCount?: number, |
| 11 | + waitInterval?: number, |
| 12 | + placeholder?: string, |
| 13 | + placeholderColor?: string, |
| 14 | + spinnerSize?: string, |
| 15 | + spinnerColor?: string, |
| 16 | + listHeader?: string, |
| 17 | + fetchDataUrl?: string, |
| 18 | + fetchDataParams?: any, |
| 19 | + noDataText?: string; |
| 20 | + inputContainerStyle?: any; |
| 21 | + inputStyle?: any; |
| 22 | + spinnerStyle?: any; |
| 23 | + noDataTextStyle?: any; |
| 24 | + separatorStyle?: any; |
| 25 | + listFooterStyle?: any; |
| 26 | + listHeaderStyle?: any; |
| 27 | + rightContentStyle?: any; |
| 28 | + rightContentItemStyle?: any; |
| 29 | + listHeaderTextStyle?: any; |
| 30 | + overlayStyle?: any; |
| 31 | + pickerStyle?: any; |
| 32 | + containerStyle?: any; |
| 33 | + |
| 34 | + scrollToInput: (ev: any) => void, |
| 35 | + handleSelectItem: (item: any, index: number) => void, |
| 36 | + onDropdownShow: () => void, |
| 37 | + onDropdownClose: () => void, |
| 38 | + renderIcon?: () => void, |
| 39 | + valueExtractor?: (item: any) => void, |
| 40 | + rightTextExtractor?: (item: any) => void, |
| 41 | +} |
| 42 | + |
| 43 | +export class Autocomplete extends React.Component<AutocompleteProps, any> { |
| 44 | + |
| 45 | +} |
| 46 | + |
| 47 | +export function withKeyboardAwareScrollView<P>( |
| 48 | + component: React.ComponentType<P> |
| 49 | +): React.ComponentType<P>; |
0 commit comments