import * as React from 'react'; import { Animated, TextStyle, I18nManager, StyleProp, StyleSheet, } from 'react-native'; import { withTheme } from '../../core/theming'; type Props = React.ComponentPropsWithRef & { style?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; }; /** * Text component which follows styles from the theme. * * @extends Text props https://reactnative.dev/docs/text#props */ function AnimatedText({ style, theme, ...rest }: Props) { const writingDirection = I18nManager.isRTL ? 'rtl' : 'ltr'; return ( ); } const styles = StyleSheet.create({ text: { textAlign: 'left', }, }); export default withTheme(AnimatedText);