Google sign in smart code can be used for the sign In options like gmail Id, Facebook Id etc in to an Application screen. The user can find this in assigning a button, Google signin option from General method and assigning a value to it.
Smartcode
GoogleSignin(Variable);
- Variable = Name of the variable to save the return status
Direct Code
Syntax
try {
var Add;
try {
GoogleSignin.configure();
await GoogleSignin.hasPlayServices();
<<Variable_Name>> = await GoogleSignin.signIn();
} catch(error){
this.setState({ spinner: false });
OreAlert.alert(“Alert”,error.toString());
return;
}
}
catch(ex) {
OreAlert.alert(ex.message);
}
this.setState({ spinner: false });
}