From c7c38a9b41bfe8f4dc90c467e42580d338e6d2d1 Mon Sep 17 00:00:00 2001 From: Peixin Liu Date: Mon, 21 Aug 2017 18:09:16 +0800 Subject: [PATCH 1/2] support RN 0.47 --- .../rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } From b76ede0c5371e94531e1c1b5ed8cfe85b3e3504d Mon Sep 17 00:00:00 2001 From: liupeixin Date: Fri, 26 Oct 2018 15:57:48 +0800 Subject: [PATCH 2/2] fix warn implement `requiresMainQueueSetup` --- ios/RCTBluetoothSerial/RCTBluetoothSerial.m | 5 +++++ 1 file changed, 5 insertions(+) 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 {