import React from 'react'; import { StyleProp, TextStyle, LayoutChangeEvent, Animated } from 'react-native'; import { AdornmentSide } from './enums'; export declare type Props = { /** * Text to show. */ text: string; onLayout?: (event: LayoutChangeEvent) => void; /** * Style that is passed to the Text element. */ textStyle?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; }; declare type ContextState = { topPosition: number | null; onLayout?: (event: LayoutChangeEvent) => void; visible?: Animated.Value; textStyle?: StyleProp; side: AdornmentSide; paddingHorizontal?: number | string; maxFontSizeMultiplier?: number | undefined | null; }; declare const AffixAdornment: React.FunctionComponent<{ affix: React.ReactNode; testID: string; } & ContextState>; /** * A component to render a leading / trailing text in the TextInput * *
*
* *
*
* * ## Usage * ```js * import * as React from 'react'; * import { TextInput } from 'react-native-paper'; * * const MyComponent = () => { * const [text, setText] = React.useState(''); * * return ( * } * /> * ); * }; * * export default MyComponent; * ``` */ declare const TextInputAffix: { ({ text, textStyle: labelStyle, theme }: Props): JSX.Element; displayName: string; }; declare const _default: React.ComponentType & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics & { ({ text, textStyle: labelStyle, theme }: Props): JSX.Element; displayName: string; }, {}>; export default _default; export { TextInputAffix, AffixAdornment };