import { DEFAULT_FONT_SIZE } from '@/core/constants'; import { useTailwind, useThrottle } from '@/hooks'; import { Text as RNText, TextProps as RNTextProps } from 'react-native'; import { Style } from 'twrnc/dist/esm/types'; export interface TextProps extends RNTextProps { style?: Style; } export default function Text({ style, onPress, ...props }: TextProps) { const tw = useTailwind(); const handleOnPress = useThrottle(onPress || (() => null), [onPress], duration({ s: 0.5 })); return ( ); }