UNPKG

1.34 kBTypeScriptView Raw
1import * as React from 'react';
2import { Animated, TextStyle, StyleProp } from 'react-native';
3declare type Props = React.ComponentPropsWithRef<typeof Animated.Text> & {
4 style?: StyleProp<TextStyle>;
5 /**
6 * @optional
7 */
8 theme: ReactNativePaper.Theme;
9};
10/**
11 * Text component which follows styles from the theme.
12 *
13 * @extends Text props https://reactnative.dev/docs/text#props
14 */
15declare function AnimatedText({ style, theme, ...rest }: Props): JSX.Element;
16declare const _default: React.ComponentType<Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
17 style?: StyleProp<TextStyle>;
18 /**
19 * @optional
20 */
21 theme: ReactNativePaper.Theme;
22}, keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
23 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
24}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
25 style?: StyleProp<TextStyle>;
26 /**
27 * @optional
28 */
29 theme: ReactNativePaper.Theme;
30}> & typeof AnimatedText, {}>;
31export default _default;