UNPKG

1.35 kBTypeScriptView Raw
1import React from 'react';
2import { TextProps as TextProperties, TextStyle, StyleProp } from 'react-native';
3import { RneFunctionComponent } from '../helpers';
4export declare type TextProps = TextProperties & {
5 style?: StyleProp<TextStyle>;
6 h1?: boolean;
7 h2?: boolean;
8 h3?: boolean;
9 h4?: boolean;
10 h1Style?: StyleProp<TextStyle>;
11 h2Style?: StyleProp<TextStyle>;
12 h3Style?: StyleProp<TextStyle>;
13 h4Style?: StyleProp<TextStyle>;
14};
15declare const TextElement: RneFunctionComponent<TextProps>;
16export { TextElement };
17declare const _default: React.FunctionComponent<Omit<TextProperties & {
18 style?: StyleProp<TextStyle>;
19 h1?: boolean;
20 h2?: boolean;
21 h3?: boolean;
22 h4?: boolean;
23 h1Style?: StyleProp<TextStyle>;
24 h2Style?: StyleProp<TextStyle>;
25 h3Style?: StyleProp<TextStyle>;
26 h4Style?: StyleProp<TextStyle>;
27} & Partial<import("../config").ThemeProps<TextProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<TextProperties & {
28 style?: StyleProp<TextStyle>;
29 h1?: boolean;
30 h2?: boolean;
31 h3?: boolean;
32 h4?: boolean;
33 h1Style?: StyleProp<TextStyle>;
34 h2Style?: StyleProp<TextStyle>;
35 h3Style?: StyleProp<TextStyle>;
36 h4Style?: StyleProp<TextStyle>;
37} & Partial<import("../config").ThemeProps<TextProps>>>;
38export default _default;