UNPKG

3.45 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, TextStyle } from 'react-native';
3import AnimatedText from './Typography/AnimatedText';
4import type { $Omit } from '../types';
5declare type Props = $Omit<$Omit<React.ComponentPropsWithRef<typeof AnimatedText>, 'padding'>, 'type'> & {
6 /**
7 * Type of the helper text.
8 */
9 type: 'error' | 'info';
10 /**
11 * Whether to display the helper text.
12 */
13 visible?: boolean;
14 /**
15 * Whether to apply padding to the helper text.
16 */
17 padding?: 'none' | 'normal';
18 /**
19 * Text content of the HelperText.
20 */
21 children: React.ReactNode;
22 style?: StyleProp<TextStyle>;
23 /**
24 * @optional
25 */
26 theme: ReactNativePaper.Theme;
27 /**
28 * TestID used for testing purposes
29 */
30 testID?: string;
31};
32declare const _default: (React.ComponentClass<Pick<Props, "ref" | "style" | "children" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onLayout" | "onTextLayout" | "onPress" | "onLongPress" | "testID" | "nativeID" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "minimumFontScale" | "suppressHighlighting" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "type" | "padding" | "visible"> & {
33 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
34}, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & (({ style, type, visible, theme, onLayout, padding, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent<Props> & (({ style, type, visible, theme, onLayout, padding, ...rest }: Props) => JSX.Element)), {}>) | (React.FunctionComponent<Pick<Props, "ref" | "style" | "children" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onLayout" | "onTextLayout" | "onPress" | "onLongPress" | "testID" | "nativeID" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "minimumFontScale" | "suppressHighlighting" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "type" | "padding" | "visible"> & {
35 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
36}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & (({ style, type, visible, theme, onLayout, padding, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent<Props> & (({ style, type, visible, theme, onLayout, padding, ...rest }: Props) => JSX.Element)), {}>);
37export default _default;
38
\No newline at end of file