1 | import React from 'react';
|
2 | import { StyleProp, TextStyle, LayoutChangeEvent, Animated } from 'react-native';
|
3 | import { AdornmentSide } from './enums';
|
4 | export declare type Props = {
|
5 | |
6 |
|
7 |
|
8 | text: string;
|
9 | onLayout?: (event: LayoutChangeEvent) => void;
|
10 | |
11 |
|
12 |
|
13 | textStyle?: StyleProp<TextStyle>;
|
14 | |
15 |
|
16 |
|
17 | theme: ReactNativePaper.Theme;
|
18 | };
|
19 | declare type ContextState = {
|
20 | topPosition: number | null;
|
21 | onLayout?: (event: LayoutChangeEvent) => void;
|
22 | visible?: Animated.Value;
|
23 | textStyle?: StyleProp<TextStyle>;
|
24 | side: AdornmentSide;
|
25 | paddingHorizontal?: number | string;
|
26 | maxFontSizeMultiplier?: number | undefined | null;
|
27 | };
|
28 | declare const AffixAdornment: React.FunctionComponent<{
|
29 | affix: React.ReactNode;
|
30 | testID: string;
|
31 | } & ContextState>;
|
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 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | declare const TextInputAffix: {
|
63 | ({ text, textStyle: labelStyle, theme }: Props): JSX.Element;
|
64 | displayName: string;
|
65 | };
|
66 | declare const _default: React.ComponentType<Pick<Props, "text" | "onLayout" | "textStyle"> & {
|
67 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
68 | }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & {
|
69 | ({ text, textStyle: labelStyle, theme }: Props): JSX.Element;
|
70 | displayName: string;
|
71 | }, {}>;
|
72 | export default _default;
|
73 | export { TextInputAffix, AffixAdornment };
|