import { Text as RNText, TextProps as RNTextProps, StyleProp, View, ViewStyle } from 'react-native'; import { useTheme } from '../../core'; import { tw } from '../../core/tailwind'; type TextProps = RNTextProps & { // Applies styles that make the text look like a "primary" or "important" title. isHeader?: boolean; // Includes a left border with the primary color. leftBorder?: boolean; icon?: React.ReactNode; containerStyle?: StyleProp; }; export function Text(props: TextProps) { const { primary, font } = useTheme(); const { style, leftBorder, isHeader, icon, containerStyle, ...otherProps } = props; return ( {icon} ); }