25 lines
831 B
TypeScript
25 lines
831 B
TypeScript
import { Text, View,Image } from "react-native";
|
|
import tw from "twrnc";
|
|
import CustomButton from "./CustomButton";
|
|
import { icons } from "@/constants";
|
|
const OAuth =()=>{
|
|
const handleGoogleSignIn =async ()=>{
|
|
|
|
}
|
|
return(
|
|
<View>
|
|
<View style={tw`flex flex-row justify-center mt-4 gap-x-3`}>
|
|
<View style={tw`flex-1 h-[1px] bg-general-100 `}/>
|
|
<Text style={tw`text-lg`}>Or</Text>
|
|
<View style={tw`flex-1 h-[1px] bg-general-100 `}/>
|
|
</View>
|
|
<CustomButton title="Log in with Google" style={tw`mt-5 w-full shadow-none`}
|
|
IconLeft={()=>(<Image source={icons.google} resizeMode="contain" style={tw`w-5 h-5 mx-2`}/>)}
|
|
bgVariant="outline"
|
|
textVariant="primary"
|
|
onPress={handleGoogleSignIn}
|
|
/>
|
|
</View>
|
|
);
|
|
};
|
|
export default OAuth; |