import { TextInput, TextInputProps } from "react-native"; import { useThemeStore } from "../stores/ThemeStore"; import { useState } from "react"; export type CustomTextInputProps = { text?: string; focused?: boolean; className?: string; multiline?: boolean; onValueChange?: (text: string) => void; placeholder?: string; placeholderTextColor?: string; secureTextEntry?: boolean; autoCapitalize?: TextInputProps["autoCapitalize"]; keyboardType?: TextInputProps["keyboardType"]; }; const CustomTextInput = (props: CustomTextInputProps) => { const { theme } = useThemeStore(); const [focused, setFocused] = useState(props.focused ?? false); return ( setFocused(true)} onBlur={() => setFocused(false)} /> ); }; export default CustomTextInput;