import React from 'react'; import { TextStyle, PressableProps } from 'react-native'; import ThemedButton from '@/components/theme/buttons/ThemedButton'; import ThemedText from '@/components/theme/default/ThemedText'; import { Colors } from '@/constants/Colors'; import { useColorScheme } from '@/hooks/useColorScheme'; const DEFAULT_FONT_SIZE = 16; // Extend ThemedButton props (which already extends PressableProps) type ThemedTextButtonProps = Omit & { width?: number; height?: number; text: string; fontSize?: number; textStyle?: TextStyle; containerStyle?: object; buttonStyle?: object; }; const ThemedTextButton: React.FC = ({ width, height, text, fontSize, textStyle, containerStyle, buttonStyle, ...restProps // This includes onPress and all other Pressable props }) => { const scheme = useColorScheme() ?? 'dark'; return ( {text} ); }; export default ThemedTextButton;