import React from "react"; import { TextInput, TextInputProps, View } from "react-native"; import { AntDesignIconNames } from "../Icons"; import { AntDesign } from "@expo/vector-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( (props, ref): React.ReactElement => { const { onBlur, onChangeText, value, beforeIcon, afterIcon, label, placeholder, onPress, ...rest } = props; return ( {label} {afterIcon != null ? ( ) : null} ); } );