1 | import * as React from 'react';
|
2 | import { Animated, TextStyle } from 'react-native';
|
3 | import type { VariantProp } from './types';
|
4 | import type { ThemeProp } from '../../types';
|
5 | declare type Props<T> = React.ComponentPropsWithRef<typeof Animated.Text> & {
|
6 | /**
|
7 | * Variant defines appropriate text styles for type role and its size.
|
8 | * Available variants:
|
9 | *
|
10 | * Display: `displayLarge`, `displayMedium`, `displaySmall`
|
11 | *
|
12 | * Headline: `headlineLarge`, `headlineMedium`, `headlineSmall`
|
13 | *
|
14 | * Title: `titleLarge`, `titleMedium`, `titleSmall`
|
15 | *
|
16 | * Label: `labelLarge`, `labelMedium`, `labelSmall`
|
17 | *
|
18 | * Body: `bodyLarge`, `bodyMedium`, `bodySmall`
|
19 | */
|
20 | variant?: VariantProp<T>;
|
21 | style?: TextStyle;
|
22 | /**
|
23 | * @optional
|
24 | */
|
25 | theme?: ThemeProp;
|
26 | };
|
27 | /**
|
28 | * Animated text component which follows styles from the theme.
|
29 | *
|
30 | * @extends Text props https://reactnative.dev/docs/text#props
|
31 | */
|
32 | declare function AnimatedText({ style, theme: themeOverrides, variant, ...rest }: Props<never>): React.JSX.Element;
|
33 | export declare const customAnimatedText: <T>() => (props: Props<T>) => JSX.Element;
|
34 | export default AnimatedText;
|
35 | //# sourceMappingURL=AnimatedText.d.ts.map |
\ | No newline at end of file |