1.0.1 • Published 2 years ago

@naser1945/react-native-google-signin v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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>
  );
}
1.0.1

2 years ago

1.0.0

2 years ago