From 74d27cd204a4a4df1ce745fd471ee448821246af Mon Sep 17 00:00:00 2001 From: amatys Date: Tue, 5 Nov 2024 17:14:04 -0500 Subject: [PATCH] added show password for sign in --- lifescape-app/app/(auth)/sign-in.tsx | 31 +++++++++++++++++++++------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/lifescape-app/app/(auth)/sign-in.tsx b/lifescape-app/app/(auth)/sign-in.tsx index 7146a87..48ee776 100644 --- a/lifescape-app/app/(auth)/sign-in.tsx +++ b/lifescape-app/app/(auth)/sign-in.tsx @@ -17,11 +17,17 @@ import { FIREBASE_AUTH } from "@/FirebaseConfig"; import { signInWithEmailAndPassword } from "firebase/auth"; import { Link } from "expo-router"; +import { MaterialCommunityIcons } from "@expo/vector-icons"; const SignIn: React.FC = () => { // const [email, set_email] = useState(""); // const [password, set_password] = useState(""); const [loading, setLoading] = useState(false); + const [showPassword, setShowPassword] = useState(false); + + const toggleShowPassword = () => { + setShowPassword(!showPassword); + } const auth = FIREBASE_AUTH; const win = Dimensions.get("window"); @@ -76,14 +82,23 @@ const SignIn: React.FC = () => { Password - setValue("password", text)} - autoComplete="current-password" - className="h-[60px] w-[300px] rounded-md bg-black px-3 text-white" - /> + + setValue("password", text)} + autoComplete="current-password" + className="flex-1 px-3 text-white" + /> + + {loading ? (