How to use the expo-google-sign-in.allowInClient function in expo-google-sign-in

To help you get started, we’ve selected a few expo-google-sign-in examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / apps / native-component-list / src / screens / GoogleSignInScreen.tsx View on Github external
import * as GoogleSignIn from 'expo-google-sign-in';
import React from 'react';
import { Image, StyleSheet, Text, View } from 'react-native';

import GoogleSignInButton from '../components/GoogleSignInButton';

GoogleSignIn.allowInClient();

interface State {
  user?: {
    [key: string]: any;
    photoURL: string;
    displayName: string;
    email: string;
  };
}

export default class GoogleSignInScreen extends React.Component<{}, State> {
  static navigationOptions = {
    title: 'Native Google Sign-In',
  };

  readonly state: State = {};