Google登录错误React Native EXPO应用程序

时间:2019-02-19 16:06:09

标签: react-native expo google-signin

我是RN的新手。这是问题。我正在尝试通过Google为博览会应用程序提供登录机制。我根据Expo google signin doc.

处的博览会文档创建了一个firebase应用程序

我可以在firebase的控制台中看到客户端ID,并在React Native应用程序中使用它。但是我收到了这样的错误 Error screenshot

这是我使用的代码


    import React from 'react'
    import {Google} from 'expo'
    import {Alert} from 'react-native'
    const clientId=ID
    export default async function logIn() {
       try {
           const{type,user}=await Google.logInAsync({
           clientId
          })
       }
       catch(e) {
        console.log('error',e)
       }
    }

复制的错误链接:Expo snack link

0 个答案:

没有答案