1 | import * as React from 'react';
|
2 | import { StyleProp, Text as NativeText, TextStyle } from 'react-native';
|
3 | import type { VariantProp } from './types';
|
4 | import type { ThemeProp } from '../../types';
|
5 | export declare type Props<T> = React.ComponentProps<typeof NativeText> & {
|
6 | |
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | variant?: VariantProp<T>;
|
23 | children: React.ReactNode;
|
24 | theme?: ThemeProp;
|
25 | style?: StyleProp<TextStyle>;
|
26 | };
|
27 | export declare type TextRef = React.ForwardedRef<{
|
28 | setNativeProps(args: Object): void;
|
29 | }>;
|
30 | declare type TextComponent<T> = (props: Props<T> & {
|
31 | ref?: React.RefObject<TextRef>;
|
32 | }) => JSX.Element;
|
33 | declare const Component: TextComponent<never>;
|
34 | export declare const customText: <T>() => TextComponent<T>;
|
35 | export default Component;
|
36 |
|
\ | No newline at end of file |