import React from "react"; import { Text as RNText, TextProps, StyleSheet, I18nManager, Platform, TextStyle, } from "react-native"; export interface ThemedTextProps extends TextProps {} const ThemedText: React.FC = ({ style, children, ...props }) => { const combinedStyle = StyleSheet.flatten([ Platform.OS === "ios" && ({ textAlign: I18nManager.isRTL ? "left" : "auto", } as TextStyle), style, ]); return ( {children} ); }; export default ThemedText;