RhinoPackage.java
Go to the documentation of this file.
1 package ai.picovoice.reactnative.rhino;
2 
3 import com.facebook.react.ReactPackage;
4 import com.facebook.react.bridge.NativeModule;
5 import com.facebook.react.bridge.ReactApplicationContext;
6 import com.facebook.react.uimanager.ViewManager;
7 
8 import java.util.Arrays;
9 import java.util.Collections;
10 import java.util.List;
11 
12 public class RhinoPackage implements ReactPackage {
13  @Override
14  public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
15  return Arrays.asList(new RhinoModule(reactContext));
16  }
17 
18  @Override
19  public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
20  return Collections.emptyList();
21  }
22 }
ai.picovoice.reactnative.rhino.RhinoModule
Definition: RhinoModule.java:31
ai.picovoice.reactnative.rhino.RhinoPackage
Definition: RhinoPackage.java:12
ai.picovoice.reactnative.rhino.RhinoPackage.createNativeModules
List< NativeModule > createNativeModules(ReactApplicationContext reactContext)
Definition: RhinoPackage.java:14
ai.picovoice.reactnative.rhino.RhinoPackage.createViewManagers
List< ViewManager > createViewManagers(ReactApplicationContext reactContext)
Definition: RhinoPackage.java:19


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:50