import { AntDesign } from "@expo/vector-icons"; import React from "react"; import { TextInput, TextInputProps, View } from "react-native"; import { AntDesignIconNames } from "../Icons"; import Text from "../ui/Text"; export interface FormInputProps extends TextInputProps { afterIcon?: AntDesignIconNames; label: string; } interface Props extends FormInputProps { beforeIcon: AntDesignIconNames; } export default React.forwardRef( ( { onBlur, onChangeText, value, beforeIcon, afterIcon, label, placeholder, onPress, ...props }, ref ): React.ReactElement => { return ( {label} {afterIcon != null ? ( ) : null} ); } );