Member-only story
How to add FB SDK in react-native project
Hi fellow coders!
Recently we needed to show our react native app ads on different platforms like Facebook or Instagram so for that you must have FB SDK
installed and configured in your app.
React Native FBSDK (Not Supported)
I came to know that Facebook dropped the support from the official wrapper library and created Facebook SDKs for Android and iOS instead. But if you are only a JS dev you won’t understand the swift code mentioned in their iOS SDK and you’ll get confused like me.
React Native FBSDK Next
Also, they gave us the way towards the alternative library react-native-fbsdk-next
. So today I want to share how I installed and configured FB SDKs
through this library.
thebergamo / react-native-fbsdk-next
React Native FBSDK Next
This project aims to keep continuity of the React Native FBSDK from Facebook. As Facebook dropped support from it. As a community for this is our effort in order to keep upgrading and improving support for this module.
React Native FBSDK is a wrapper around the iOS Facebook SDK and Android Facebook SDK, allowing for Facebook integration in React Native apps. Access to native components, from login to sharing, is provided entirely through documented JavaScript modules so you don’t have to call a single native function directly.