private void processPackage(
     ReactPackage reactPackage,
     ReactApplicationContext reactContext,
     NativeModuleRegistry.Builder nativeRegistryBuilder,
     JavaScriptModulesConfig.Builder jsModulesBuilder) {
   for (NativeModule nativeModule : reactPackage.createNativeModules(reactContext)) {
     nativeRegistryBuilder.add(nativeModule);
   }
   for (Class<? extends JavaScriptModule> jsModuleClass : reactPackage.createJSModules()) {
     jsModulesBuilder.add(jsModuleClass);
   }
 }
Ejemplo n.º 2
0
 @Override
 public ReactInstanceEasyBuilder addNativeModule(NativeModule module) {
   mNativeModuleRegistryBuilder.add(module);
   return this;
 }