import React, { useState } from "react"; import { Platform, TextInput, type TextInputProps, TouchableOpacity, } from "react-native"; interface InputProps extends TextInputProps { extraClassName?: string; // new prop for additional classes } export function Input(props: InputProps) { const { style, extraClassName = "", ...otherProps } = props; const inputRef = React.useRef(null); const [isFocused, setIsFocused] = useState(false); return Platform.isTV ? ( inputRef?.current?.focus?.()} activeOpacity={1} > setIsFocused(true)} onBlur={() => setIsFocused(false)} {...otherProps} /> ) : ( ); }