'React/RCTBridgeModule.h' file not found when using react native fbsdk

krishna swaroopa I picture krishna swaroopa I · Feb 17, 2017 · Viewed 7.3k times · Source

I am using react-native-fbsdk in my application. My react-native version is:0.39.1

I followed the all steps and when I build my project I'm getting the following error.

screenshot

Can anyone please tell me how to solve this.

Answer

Kevin Amiranoff picture Kevin Amiranoff · Feb 17, 2017

There was a breaking change in React-Native 0.40 where the headers have been moved to React namespace. If you use a version prior to 0.40 you have to change 'React/RCTBridgeModule.h' to 'RCTBridgeModule.h' inside of RCTFBSDKAppEvents.m

See here for more info : https://github.com/facebook/react-native/releases/tag/v0.40.0

Or you can upgrade your react-native version: https://facebook.github.io/react-native/docs/upgrading.html