When I added fbsdk in my project, I got errors like -
Warning: Native component for \"RCTFBLikeView\" does not exist 2016-06-21 22:27:38.898 [warn][
I was struggling with this recently and what I found to work is that, after running react-native install react-native-fbsdk
you still need to run react-native link react-native-fbsdk
.
The libRCTFBSDK.a will then appear under Link Binary with Libraries in Xcode but (I think) needs to be removed and then re-added by clicking the -
and +
buttons at the bottom.
I have installed react-native-fbsdk and link using react-native-link react-native-fbsdk.
Follow instruction of following link
https://developers.facebook.com/docs/react-native/configure-ios
This provide to link react-native library using ios_setup.js There are following step which i have followed.
curl -O https://raw.githubusercontent.com/facebook/react-native-fbsdk/master/bin/ios_setup.js
npm install plist xcode adm-zip
node ios_setup.js [App ID] [App Name]
When run node ios_setup.js it wll automatically link all files in ios.
Pod spec support has been removed since a recent version. It expects the FacebookSDK to be ~/Documents directory. See issue here https://github.com/facebook/react-native-fbsdk/issues/181