google button
This commit is contained in:
+10
-2
@@ -1,4 +1,5 @@
|
|||||||
/* eslint-disable react/display-name */
|
/* eslint-disable react/display-name */
|
||||||
|
import { GoogleSigninButton } from "@react-native-google-signin/google-signin";
|
||||||
import * as AuthSession from "expo-auth-session";
|
import * as AuthSession from "expo-auth-session";
|
||||||
import * as GoogleAuth from "expo-auth-session/providers/google";
|
import * as GoogleAuth from "expo-auth-session/providers/google";
|
||||||
import * as WebBrowser from "expo-web-browser";
|
import * as WebBrowser from "expo-web-browser";
|
||||||
@@ -10,6 +11,7 @@ import GradientButton from "../components/GradientButton.js";
|
|||||||
import { Input } from "../components/Input.js";
|
import { Input } from "../components/Input.js";
|
||||||
import ItemContainer from "../components/ItemContainer/ItemContainer.js";
|
import ItemContainer from "../components/ItemContainer/ItemContainer.js";
|
||||||
import firebase, { usersRef } from "../config/firebase";
|
import firebase, { usersRef } from "../config/firebase";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
GOOGLE_ANDROID_CLIENT_ID,
|
GOOGLE_ANDROID_CLIENT_ID,
|
||||||
GOOGLE_IOS_CLIENT_ID,
|
GOOGLE_IOS_CLIENT_ID,
|
||||||
@@ -234,8 +236,7 @@ export default ({ navigation }) => {
|
|||||||
onPress={onLogin}
|
onPress={onLogin}
|
||||||
disabled={loading || !email || !password}
|
disabled={loading || !email || !password}
|
||||||
/>
|
/>
|
||||||
|
{/* <GradientButton
|
||||||
<GradientButton
|
|
||||||
title="Se connecter avec Google"
|
title="Se connecter avec Google"
|
||||||
containerStyle={{
|
containerStyle={{
|
||||||
width: "80%",
|
width: "80%",
|
||||||
@@ -243,7 +244,14 @@ export default ({ navigation }) => {
|
|||||||
}}
|
}}
|
||||||
onPress={onLoginWithGoogle}
|
onPress={onLoginWithGoogle}
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
|
/> */}
|
||||||
|
<GoogleSigninButton
|
||||||
|
style={{ width: "80%", height: 50, alignSelf: "center" }}
|
||||||
|
color={GoogleSigninButton.Color.Dark}
|
||||||
|
onPress={onLoginWithGoogle}
|
||||||
|
disabled={loading}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
|||||||
Reference in New Issue
Block a user