1

I'm trying to add a Facebook Login on my react native project using react-native-fbsdk library, but I am getting error while running react-native run-android.

Here's the screenshot of the error:

Error Description

I have clearly followed the installation instructions from their github repo: https://github.com/facebook/react-native-fbsdk

I tried most of the solutions found on SO but couldn't make it run.

I have following versions installed:

[email protected]

[email protected]

1
  • Can you give more details about the solutions you tried please. Commented Aug 3, 2017 at 21:07

1 Answer 1

1

This is due to breaking change in 0.47.1 which affects most of the native dependencies. In case of react-native-fbsdk, they has yet to release new version. So if you use following version, it would be fine.

  • react-native : 0.46.4

  • react-native-fbsdk : 0.6.1

3
  • Yes, I later downgraded the react-native to 0.46.4 and it's working now perfectly. Commented Aug 4, 2017 at 14:18
  • This is a bit crap, someone would suppose that at least Facebook is keeping their libraries up to date with new releases of React Native.
    – mtt
    Commented Aug 11, 2017 at 16:06
  • @TusharKhatiwada Were you able to run this setup on iOS as well? I'm having to keep my fbsdk to 0.6.0 to get it to run on iOS. Commented Aug 24, 2017 at 16:02

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.