From 2bb195c7be0b0255df4833f334d2159bbcd1dd44 Mon Sep 17 00:00:00 2001 From: Sanidhya Kumar Verma Date: Thu, 29 Aug 2024 15:45:26 +0000 Subject: [PATCH] sign in screen ui completed --- app/(auth)/sign-in.tsx | 83 +++++++++++++++++++++++++++++++++++++++--- app/(auth)/sign-up.tsx | 2 +- 2 files changed, 79 insertions(+), 6 deletions(-) diff --git a/app/(auth)/sign-in.tsx b/app/(auth)/sign-in.tsx index 60cae36..e9c23ac 100644 --- a/app/(auth)/sign-in.tsx +++ b/app/(auth)/sign-in.tsx @@ -1,11 +1,84 @@ -import { Text } from "react-native"; -import { SafeAreaView } from "react-native-safe-area-context"; +import { Link } from "expo-router"; +import { useState } from "react"; +import { Image, ScrollView, Text, View } from "react-native"; + +import { CustomButton } from "@/components/custom-button"; +import { InputField } from "@/components/input-field"; +import { OAuth } from "@/components/oauth"; +import { icons, images } from "@/constants"; const SignIn = () => { + const [form, setForm] = useState({ + email: "", + password: "", + }); + + const onSignInPress = async () => {}; + return ( - - SignIn - + + + + Car + + + Welcome 👋 + + + + + + setForm((prevForm) => ({ + ...prevForm, + email: value, + })) + } + /> + + + setForm((prevForm) => ({ + ...prevForm, + password: value, + })) + } + /> + + + + + + + Don't have an account? + Sign up + + + + {/* Verification Modal */} + + ); }; diff --git a/app/(auth)/sign-up.tsx b/app/(auth)/sign-up.tsx index e37cf56..7b039c0 100644 --- a/app/(auth)/sign-up.tsx +++ b/app/(auth)/sign-up.tsx @@ -86,7 +86,7 @@ const SignUp = () => { className="text-lg text-center text-general-200 mt-10" > Already have an account? - Login + Sign in