forked from tuantle/react-native-search-header
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
45 lines (45 loc) · 1.28 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
declare module "react-native-search-header" {
import { StyleProp } from "react-native";
import { Component } from "react";
export interface IconComponent<T> {
name: string;
customStyle: StyleProp<T>;
render: React.ReactElement<{ style: StyleProp<T> }>;
}
export interface SearchHeaderProps {
inputColor?: string;
inputBgColor?: string;
placeholderColor?: string;
suggestionEntryColor?: string;
iconColor?: string;
topOffset?: number;
headerHeight?: number;
headerBgColor?: string;
dropShadowed?: boolean;
visibleInitially?: boolean;
autoFocus?: boolean;
autoCorrect?: boolean;
persistent?: boolean;
enableSuggestion?: boolean;
suggestionHistoryEntryRollOverCount?: number;
placeholder?: string;
entryAnimation?: `from-left-side` | `from-right-side`;
iconImageComponents?: Array<any>;
onClearSuggesstion?: Function;
onGetAutocompletions?: Function;
onClear?: Function;
onSearch?: Function;
onEnteringSearch?: Function;
onFocus?: Function;
onBlur?: Function;
onHide?: Function;
onShow?: Function;
}
export default class extends Component<SearchHeaderProps> {
isHidden(): Boolean;
show(): void;
hide(): void;
clear(): void;
clearSuggestion(): void;
}
}