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 11package  com .rusel .RCTBluetoothSerial ;
22
3- import  java .util .Arrays ;
3+ import  java .util .ArrayList ;
44import  java .util .Collections ;
55import  java .util .List ;
66
@@ -15,15 +15,18 @@ public class RCTBluetoothSerialPackage implements ReactPackage {
1515
1616    @ Override 
1717    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 ;
1921    }
2022
23+     // Deprecated RN 0.47 
2124    public  List <Class <? extends  JavaScriptModule >> createJSModules () {
22-       return  Collections .emptyList ();
25+          return  Collections .emptyList ();
2326    }
2427
2528    @ Override 
2629    public  List <ViewManager > createViewManagers (ReactApplicationContext  reactContext ) {
27-       return  Collections .emptyList ();
30+          return  Collections .emptyList ();
2831    }
2932}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments