Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Native component for "RCTFBLoginButton" does not exist

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.

like image 729
snow Avatar asked Nov 29 '16 19:11

snow


2 Answers

I just figured out how to solve this issue here by changing my podfile for the fsdk to:

pod 'react-native-fbsdk', :subspecs => ['Core', 'Login', 'Share'], :path => '../node_modules/react-native-fbsdk'
like image 70
PatrickM Avatar answered Nov 01 '22 14:11

PatrickM


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.

Source

like image 31
MohamadKh75 Avatar answered Nov 01 '22 15:11

MohamadKh75