import Styles from "@/constants/Styles"; import { Feather } from "@expo/vector-icons"; import { Pressable, View } from "react-native"; import Text from "./Text"; type Props = { label?: string; placeholder?: string; value: string; onPress?: () => void; info?: string; itemLeft?: React.ReactNode; error?: boolean; errorText?: string; required?: boolean; round?: boolean bg?: 'white' | 'transparent' }; export default function SelectForm({ label, value, placeholder, onPress, info, error, errorText, required, itemLeft, round, bg }: Props) { return ( { label != undefined && ( {label} {required && (*)} ) } { value ? ( {value} ) : ( {placeholder} ) } {error && ({errorText})} {info != undefined && ({info})} ) }