1 | import * as React from 'react';
|
2 | import { StyleProp, TextInput, TextInputProps, ViewStyle, TextStyle } from 'react-native';
|
3 | import type { IconSource } from './Icon';
|
4 | declare type Props = React.ComponentPropsWithRef<typeof TextInput> & {
|
5 | |
6 |
|
7 |
|
8 | clearAccessibilityLabel?: string;
|
9 | |
10 |
|
11 |
|
12 | searchAccessibilityLabel?: string;
|
13 | |
14 |
|
15 |
|
16 | placeholder?: string;
|
17 | |
18 |
|
19 |
|
20 | value: string;
|
21 | |
22 |
|
23 |
|
24 | icon?: IconSource;
|
25 | |
26 |
|
27 |
|
28 | onChangeText?: (query: string) => void;
|
29 | |
30 |
|
31 |
|
32 | onIconPress?: () => void;
|
33 | |
34 |
|
35 |
|
36 | inputStyle?: StyleProp<TextStyle>;
|
37 | style?: StyleProp<ViewStyle>;
|
38 | |
39 |
|
40 |
|
41 | theme: ReactNativePaper.Theme;
|
42 | |
43 |
|
44 |
|
45 | iconColor?: string;
|
46 | |
47 |
|
48 |
|
49 | clearIcon?: IconSource;
|
50 | };
|
51 | declare type TextInputHandles = Pick<TextInput, 'setNativeProps' | 'isFocused' | 'clear' | 'blur' | 'focus'>;
|
52 | declare const _default: React.ComponentType<Pick<Pick<Props, "icon" | "key" | "theme" | keyof TextInputProps | "clearAccessibilityLabel" | "clearIcon" | "iconColor" | "inputStyle" | "onIconPress" | "searchAccessibilityLabel"> & React.RefAttributes<TextInputHandles>, "icon" | keyof TextInputProps | "clearAccessibilityLabel" | "clearIcon" | "iconColor" | "inputStyle" | "onIconPress" | "searchAccessibilityLabel" | keyof React.RefAttributes<TextInputHandles>> & {
|
53 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
54 | }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Pick<Props, "icon" | "key" | "theme" | keyof TextInputProps | "clearAccessibilityLabel" | "clearIcon" | "iconColor" | "inputStyle" | "onIconPress" | "searchAccessibilityLabel"> & React.RefAttributes<TextInputHandles>> & React.ForwardRefExoticComponent<Pick<Props, "icon" | "key" | "theme" | keyof TextInputProps | "clearAccessibilityLabel" | "clearIcon" | "iconColor" | "inputStyle" | "onIconPress" | "searchAccessibilityLabel"> & React.RefAttributes<TextInputHandles>>, {}>;
|
55 | export default _default;
|