react-native – 如何修复RN GoogleSignin模块链接.
发布时间:2020-12-15 20:20:31 所属栏目:百科 来源:网络整理
导读:每当我使用纱线时,一切都会爆炸,这是反应原生社区给出的指示. 我已经尝试过做npm install –save然后使用link命令但到目前为止没有任何工作. 我究竟做错了什么?以及如何解决这个问题. onsole.error: "RN GoogleSignin native module is not correctly linke
每当我使用纱线时,一切都会爆炸,这是反应原生社区给出的指示.
我已经尝试过做npm install –save然后使用link命令但到目前为止没有任何工作. 我究竟做错了什么?以及如何解决这个问题. onsole.error: "RN GoogleSignin native module is not correctly linked. Please read the readme,setup and troubleshooting instructions carefully or try manual linking." 解决方法
经过2天的修修补补后,我放弃了反应googlesignin的东西..我只是按照火柴指南和博览会指南,一切正常.
世博谷歌登录获取凭据 如果你正在做一个firebase googlelogin的事情,你已经有firebase设置,你可以做点什么 googleLogin = async () => { try { const result = await Expo.Google.logInAsync({ androidClientId: "Your Client ID",//iosClientId: YOUR_CLIENT_ID_HERE,<-- if you use iOS scopes: ["profile","email"] }) if (result.type === "success") { const credential = firebase.auth.GoogleAuthProvider.credential(result.idToken,result.accessToken); firebase.auth().signInAndRetrieveDataWithCredential(credential).then(function(result){ console.log(result); }); this.props.navigation.navigate('Where you want to go'); } else { console.log("cancelled") } } catch (e) { console.log("error",e) } } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |