UNPKG

react-native-animateable-text

Version:

A fork of React Native's <Text/> component that supports Animated Values

11 lines (10 loc) 427 B
/// <reference types="react" /> import type { TextProps as NativeTextProps, Text as IText } from 'react-native'; import type Animated from 'react-native-reanimated'; export declare type AnimateableTextProps = Omit<NativeTextProps, 'children'> & { forwardedRef?: React.Ref<IText>; animatedProps?: Partial<Omit<NativeTextProps, 'children'> & { text?: string; }>; text?: string | Animated.Node<string>; };