File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
android/src/main/java/com/rusel/RCTBluetoothSerial Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .rusel .RCTBluetoothSerial ;
2
2
3
- import java .util .Arrays ;
3
+ import java .util .ArrayList ;
4
4
import java .util .Collections ;
5
5
import java .util .List ;
6
6
@@ -15,15 +15,18 @@ public class RCTBluetoothSerialPackage implements ReactPackage {
15
15
16
16
@ Override
17
17
public List <NativeModule > createNativeModules (ReactApplicationContext reactContext ) {
18
- return Arrays .<NativeModule >asList (new RCTBluetoothSerialModule (reactContext ));
18
+ List <NativeModule > modules = new ArrayList <>();
19
+ modules .add (new RCTBluetoothSerialModule (reactContext ));
20
+ return modules ;
19
21
}
20
22
23
+ // Deprecated RN 0.47
21
24
public List <Class <? extends JavaScriptModule >> createJSModules () {
22
- return Collections .emptyList ();
25
+ return Collections .emptyList ();
23
26
}
24
27
25
28
@ Override
26
29
public List <ViewManager > createViewManagers (ReactApplicationContext reactContext ) {
27
- return Collections .emptyList ();
30
+ return Collections .emptyList ();
28
31
}
29
32
}
You can’t perform that action at this time.
0 commit comments