From 78daa12fcad3f064b039df11345f4969669a6be3 Mon Sep 17 00:00:00 2001 From: JoeZhang Date: Thu, 28 Mar 2019 11:14:09 +0800 Subject: [PATCH] Deprecated createJSModules on Android only for RN >= 0.47 --- .../rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java b/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java index 3ae4831..f85271c 100644 --- a/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java +++ b/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java @@ -20,7 +20,7 @@ public List createNativeModules(ReactApplicationContext reactConte return modules; } - @Override + // Deprecated RN 0.47 public List> createJSModules() { return Collections.emptyList(); } @@ -29,4 +29,4 @@ public List> createJSModules() { public List createViewManagers(ReactApplicationContext reactContext) { return Collections.emptyList(); } -} \ No newline at end of file +}