import color from 'color'; import * as React from 'react'; import { I18nManager, StyleProp, TextStyle, StyleSheet } from 'react-native'; import Text from './Text'; import { withTheme } from '../../core/theming'; type Props = React.ComponentProps & { alpha: number; family: 'regular' | 'medium' | 'light' | 'thin'; style?: StyleProp; theme: ReactNativePaper.Theme; }; const StyledText = ({ theme, alpha, family, style, ...rest }: Props) => { const textColor = color(theme.colors.text).alpha(alpha).rgb().string(); const font = theme.fonts[family]; const writingDirection = I18nManager.isRTL ? 'rtl' : 'ltr'; return ( ); }; const styles = StyleSheet.create({ text: { textAlign: 'left', }, }); export default withTheme(StyledText);