diff --git a/ios/RCTBluetoothSerial/RCTBluetoothSerial.h b/ios/RCTBluetoothSerial/RCTBluetoothSerial.h index 586a8e7..d8261bb 100644 --- a/ios/RCTBluetoothSerial/RCTBluetoothSerial.h +++ b/ios/RCTBluetoothSerial/RCTBluetoothSerial.h @@ -6,8 +6,15 @@ // Copyright © 2016 Jakub Martyčák. All rights reserved. // +#if __has_include() +// React Native >= 0.40 #import #import +#else +// React Native <= 0.39 +#import "RCTBridgeModule.h" +#import "RCTEventDispatcher.h" +#endif //#import "RCTEventEmitter.h" Wasnt working properly yet, events were fired but listeneres not called #import "BLE.h"