简体   繁体   English

react-native .38 Facebook登录iOS显示红色矩形而不是登录按钮

[英]react-native .38 Facebook login on iOS show a red rectangle instead of Login Button

I am trying to implement FaceBook login using react-native. 我正在尝试使用react-native实现FaceBook登录。 Followed the exact steps from: https://github.com/facebook/react-native-fbsdk https://developers.facebook.com/docs/ios/getting-started/ 遵循以下确切步骤: https//github.com/facebook/react-native-fbsdk https://developers.facebook.com/docs/ios/getting-started/

App builds fine, but it doesn't display the FBLogin button. 应用程序构建正常,但它不显示FBLogin按钮。 it shows a red rectangle instead. 它显示一个红色矩形。

I saw some similar issues discussed on android, but don't see a clear answer yet. 我在android上看到了一些类似的问题,但是还没有看到明确的答案。 Have anyone faced this ? 谁有人面对这个? Any suggestions or pointers are highly appreciated. 任何建议或指示都非常感谢。

我通过将fbsdk复制到应用程序本身并从那里链接库来实现它,而不是像文档建议的那样将它保存在〜/ Documents中。

The Red rectangle appears when the react-native-fbsdk is not linked to the Xcode project. 当react-native-fbsdk未链接到Xcode项目时,会出现红色矩形。

use this command rnpm link react-native-fbsdk 使用此命令rnpm link react-native-fbsdk

You can find how to do the linking here: https://stackoverflow.com/a/41217581 您可以在此处找到如何进行链接: https//stackoverflow.com/a/41217581

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM