infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

RCTBridgeModule.h file not found #19

Open msert29 opened 5 years ago

msert29 commented 5 years ago

I've followed the steps from README in order to add the library into my project however when I try building it, I always get the React/RCTBridgeModule.h file cannot be found error. I've ejected from a CRNA project.

infoxicator commented 5 years ago

Hi @msert29 I am not sure if this has anything to do with CRNA, but try first installing the plugin on a brand new project and then follow the installation instructions. I have seen that error before and still not sure what causes it.

msert29 commented 5 years ago

@infoxicator I've managed to solve the issue. CRNA uses cocoapods to manage dependencies. After install dependencies and doing react-native link react-native-star-prnt, Header search path for RNStarPRNT must be added. So simply adding the $(SRCROOT)/../../../ios/Pods/Headers/Public (Project NOT Target) fixes the issue with React/x library.

anil1712 commented 5 years ago

@msert29 Thanks, It worked for me.