diff --git a/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java b/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java index 3ae4831..aac9fce 100644 --- a/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java +++ b/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java @@ -20,7 +20,8 @@ public List createNativeModules(ReactApplicationContext reactConte return modules; } - @Override + // Deprecated RN 0.47 + // @Override public List> createJSModules() { return Collections.emptyList(); } diff --git a/ios/RCTBluetoothSerial/RCTBluetoothSerial.m b/ios/RCTBluetoothSerial/RCTBluetoothSerial.m index cabcc71..823f411 100644 --- a/ios/RCTBluetoothSerial/RCTBluetoothSerial.m +++ b/ios/RCTBluetoothSerial/RCTBluetoothSerial.m @@ -23,6 +23,11 @@ @implementation RCTBluetoothSerial RCT_EXPORT_MODULE(); ++ (BOOL)requiresMainQueueSetup +{ + return NO; +} + @synthesize bridge = _bridge; - (instancetype)init {