UNPKG

2.88 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, TextStyle } from 'react-native';
3import Text from '../Typography/Text';
4declare type Props = React.ComponentProps<typeof Text> & {
5 /**
6 * @optional
7 */
8 theme: ReactNativePaper.Theme;
9 /**
10 * Style that is passed to Text element.
11 */
12 style?: StyleProp<TextStyle>;
13};
14declare const _default: (React.ComponentClass<Pick<Props, "ref" | "style" | "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"> & {
15 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
16}, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
17 ({ style, theme, ...rest }: Props): JSX.Element;
18 displayName: string;
19}) | (React.FunctionComponent<Props> & {
20 ({ style, theme, ...rest }: Props): JSX.Element;
21 displayName: string;
22}), {}>) | (React.FunctionComponent<Pick<Props, "ref" | "style" | "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"> & {
23 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
24}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
25 ({ style, theme, ...rest }: Props): JSX.Element;
26 displayName: string;
27}) | (React.FunctionComponent<Props> & {
28 ({ style, theme, ...rest }: Props): JSX.Element;
29 displayName: string;
30}), {}>);
31export default _default;