import React, { useEffect } from "react"; import { TextInputProps, TextProps } from "react-native"; import { TextInput } from "react-native"; export function Input(props: TextInputProps) { const { style, ...otherProps } = props; const inputRef = React.useRef(null); useEffect(() => { inputRef.current?.focus(); }, []); return ( ); }