import { useAccessibility } from '@utils/accessibility/AccessibilityManager' import { StyleConstants } from '@utils/styles/constants' import { Text, TextProps, TextStyle } from 'react-native' type Props = | { style?: Omit fontStyle?: undefined fontSize?: 'S' | 'M' | 'L' lineHeight?: 'S' | 'M' | 'L' fontWeight?: 'Normal' | 'Bold' } | { style?: Omit fontStyle: 'S' | 'M' | 'L' fontSize?: undefined lineHeight?: undefined fontWeight?: 'Normal' | 'Bold' } const CustomText: React.FC = ({ children, style, fontStyle, fontSize, fontWeight, lineHeight, ...rest }) => { const { boldTextEnabled } = useAccessibility() enum BoldMapping { 'Normal' = '600', 'Bold' = '800' } return ( ) } export default CustomText