“RCTFBLoginButton”的原生组件不存在 [英] Native component for "RCTFBLoginButton" does not exist
问题描述
我在这里发帖是因为我已经完成了12小时搜索并尝试解决我的问题,但是无法找到解决方案。
这是我的错误屏幕:
React native debugger
我已经跟随IOS的facebook开发人员步骤,按照FBSDK github的指示,我已经链接了库...
仍有错误..
希望有人能帮助我
问候。
e1dar 回答您的问题,但这是一条评论所以我将帖子作为帖子回答!
您现在可以使用github安装此修复程序的最新版本: / p>
react-native installfacebook / react-native-fbsdk
这将写入您的 packa ge.json
file:
react-native-fbsdk:github:facebook / react-native- fbsdk
(你可能想要 react-native uninstall react-native-fbsdk
卸载并取消链接当前发布的版本。)
我还必须手动运行 react-native link react-native-fbsdk
,然后从删除并重新添加
在XCode。 LIBRCTFBSDK.a
使用库构建阶段/链接二进制文件
im posting here because ive done like 12hours searching and trying things to resolve my issue , but just cant find the solution.
Here is a screen of my errors: React native debugger
I have followed the facebook developers step for IOS, followed instruction of FBSDK github, i've linked libraries...
still have errors..
Hope someone will help me out
Regards.
e1dar answers your question but it was a comment so i'm answering the question as a post!
You can install the latest version with this fix from github right now with:
react-native install "facebook/react-native-fbsdk"
This will write to your package.json
file:
"react-native-fbsdk": "github:facebook/react-native-fbsdk"
(you'll probably want to react-native uninstall react-native-fbsdk
to uninstall and unlink the currently released version).
I also had to manually run react-native link react-native-fbsdk
, then remove and re-add LIBRCTFBSDK.a
from Build Phases/Link Binary With Libraries
in XCode.
这篇关于“RCTFBLoginButton”的原生组件不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!