joshuapinter / react-native-unified-contacts

Your best friend when working with the latest and greatest Contacts Framework in iOS 9+ in React Native.
MIT License
158 stars 56 forks source link

getting error 'React/RCTBridgeModule.h' file not found #22

Closed rishiankush closed 7 years ago

rishiankush commented 7 years ago

I am getting this error while installing this package. screen shot 2017-03-08 at 7 43 02 am

joshuapinter commented 7 years ago

What React and React Native version are you on?

rishiankush commented 7 years ago

I am using React-15.4.1 and React-native 0.39.2

joshuapinter commented 7 years ago

Kay, can you replace that line with the following and tell me if it works?

#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
rishiankush commented 7 years ago

perfect it worked! I think you should update this in your library so that there should not be any conflict in the syntax for new and old versions of react-native.

here is the screenshot: screen shot 2017-03-08 at 7 51 33 am

Thanks for your help!

joshuapinter commented 7 years ago

You bet I will. That was originally the plan - see #17 - but the PR got closed and was never fixed again.

Thanks for bringing this up again.

joshuapinter commented 7 years ago

Done! 👍