@naser1945/react-native-google-signin
v1.0.1
Published
google sign in
Downloads
49
Maintainers
Readme
Google Sign-In
[!NOTE]
This Module supports Android only for now.
Installation
npx expo install @naser1945/react-native-google-signin
Usage
import * as GoogleSignin from "google-signin";
import { Button, StyleSheet, View } from "react-native";
export default function App() {
return (
<View style={styles.container}>
<Button
onPress={async () => {
const {idToken,nonce} = await GoogleSignin.googleOneTabSignIn(
"YOUR_CLIENT_ID.apps.googleusercontent.com",
);
// Send the idToken to supabase or any other backend.
}}
title="Sign in"
/>
</View>
);
}