react-native-bluetooth-state icon indicating copy to clipboard operation
react-native-bluetooth-state copied to clipboard

Build fails on iOS because of RCTBridgeModule.h

Open iamandiradu opened this issue 5 years ago • 0 comments

I tried building the app and it failed on BridgeModule's import. I found a fix for this online, but I think this should be included in the module.

Fix: replace

#import "RCTBridgeModule.h"

with

#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif

iamandiradu avatar Jun 11 '19 11:06 iamandiradu