From f93e06c632285cacf4fa406423ade20e4001772b Mon Sep 17 00:00:00 2001 From: Sanidhya Kumar Verma Date: Thu, 29 Aug 2024 15:43:06 +0000 Subject: [PATCH] oauth component ui created --- app/(auth)/sign-up.tsx | 9 +++++---- components/oauth.tsx | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 components/oauth.tsx diff --git a/app/(auth)/sign-up.tsx b/app/(auth)/sign-up.tsx index 96aef16..e37cf56 100644 --- a/app/(auth)/sign-up.tsx +++ b/app/(auth)/sign-up.tsx @@ -1,10 +1,11 @@ +import { Link } from "expo-router"; import { useState } from "react"; import { Image, ScrollView, Text, View } from "react-native"; -import { InputField } from "@/components/input-field"; -import { icons, images } from "@/constants"; import { CustomButton } from "@/components/custom-button"; -import { Link } from "expo-router"; +import { InputField } from "@/components/input-field"; +import { OAuth } from "@/components/oauth"; +import { icons, images } from "@/constants"; const SignUp = () => { const [form, setForm] = useState({ @@ -78,7 +79,7 @@ const SignUp = () => { className="mt-6" /> - {/* OAuth */} + { + const handleGoogleSignIn = () => {}; + + return ( + + + + + Or + + + + + ( + Google logo + )} + bgVariant="outline" + textVariant="primary" + onPress={handleGoogleSignIn} + /> + + ); +};