[英]Google Signin on React Native(+Firebase) for both platforms (IOS, Android)
I am building an app using React Native with firebase using React Native.我正在使用 React Native 和 firebase 使用 React Native 构建一个应用程序。 So far I am using one code of React Native for both IOS and Android.
到目前为止,我正在为 IOS 和 Android 使用一个 React Native 代码。 Now I want to implement Google Signin, later I want to include Facebook and Github logins, but I cannot find how to implement it for both platforms.
现在我想实现谷歌登录,稍后我想包括 Facebook 和 Github 登录,但我找不到如何在两个平台上实现它。 As far as I understand it, IOS needs some podfile, and Android requires google-services.json.
据我了解,IOS 需要一些 podfile,Android 需要 google-services.json。 I found some tutorials on how to connect Google signin on each platform.
我找到了一些关于如何在每个平台上连接谷歌登录的教程。 If I follow both tutorials(including installing potfile and service,json), would it work on both platforms?
如果我遵循两个教程(包括安装 potfile 和 service,json),它可以在两个平台上工作吗? Is it possible to have 1 code that works on both platforms?
是否有可能在两个平台上都有 1 个代码?
these can be used for google and facebook logins https://github.com/react-native-google-signin/google-signin https://github.com/thebergamo/react-native-fbsdk-next/ these can be used for google and facebook logins https://github.com/react-native-google-signin/google-signin https://github.com/thebergamo/react-native-fbsdk-next/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.