import React, { useState } from "react";
const FormField = ({
title,
placeholder,
value,
handleChangeText,
...props
}) => {
const [showPassword, setShowPassword] = useState(false);
const isPasswordField = title === "Password" || title === "Confirm Password";
return (
handleChangeText(e.target.value)}
className="flex-1 bg-transparent outline-none border-none text-blue-950"
style={{
color: "#0D47A1",
fontSize: 16,
fontFamily: "inherit",
backgroundColor: "transparent",
border: "none",
outline: "none",
}}
{...props}
/>
{isPasswordField && (
)}
);
};
export default FormField;