UNPKG

2.09 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.ComponentType<(Pick<Pick<import("react-native").TextProps & {
15 style?: StyleProp<TextStyle>; /**
16 * @optional
17 */
18 theme: ReactNativePaper.Theme; /**
19 * Style that is passed to Text element.
20 */
21} & React.RefAttributes<{}>, keyof import("react-native").TextProps | keyof React.RefAttributes<{}>> & {
22 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
23} & {
24 /**
25 * @optional
26 */
27 theme: ReactNativePaper.Theme;
28 /**
29 * Style that is passed to Text element.
30 */
31 style?: StyleProp<TextStyle>;
32}, keyof import("react-native").TextProps | keyof React.RefAttributes<{}>> | Pick<Pick<import("react-native").TextProps & {
33 style?: StyleProp<TextStyle>; /**
34 * @optional
35 */
36 theme: ReactNativePaper.Theme; /**
37 * Style that is passed to Text element.
38 */
39} & React.RefAttributes<{}>, keyof import("react-native").TextProps | keyof React.RefAttributes<{}>> & {
40 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
41} & {
42 children?: React.ReactNode;
43} & {
44 /**
45 * @optional
46 */
47 theme: ReactNativePaper.Theme;
48 /**
49 * Style that is passed to Text element.
50 */
51 style?: StyleProp<TextStyle>;
52}, keyof import("react-native").TextProps | keyof React.RefAttributes<{}>>) & {
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<Props> & {
55 ({ style, theme, ...rest }: Props): JSX.Element;
56 displayName: string;
57}, {}>;
58export default _default;