fix google login

This commit is contained in:
CHIEFSOFT\ameye
2024-09-01 06:32:20 -04:00
parent d15d1f8af0
commit 66fc15c241
5 changed files with 41 additions and 6 deletions
+12
View File
@@ -1,6 +1,10 @@
import { Stack, useNavigation } from 'expo-router';
import { ImageBackground, StyleSheet, Button, TextInput, SafeAreaView, Text, View ,Image,Alert } from 'react-native';
import { useEffect,useState } from 'react';
import {
GoogleSignin,
GoogleSigninButton,
} from "@react-native-google-signin/google-signin";
const Home =()=> {
const [username, onChangeUsername] = useState('');
@@ -8,6 +12,14 @@ const Home =()=> {
const image = {uri: 'https://rader.app/assets/images/app/home.jpg'};
useEffect(() => {
GoogleSignin.configure({
webClientId:
"828012052860-rq3m5ppckbmtc7vfjp3mau0s6p8h9mgm.apps.googleusercontent.com",
});
}, []);
//https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/userlogin
return (
<SafeAreaView style={styles.container}>