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);
   }
 }
 /** Uses configured {@link ReactPackage} instances to create all view managers */
 @Override
 public List<ViewManager> createAllViewManagers(
     ReactApplicationContext catalystApplicationContext) {
   Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "createAllViewManagers");
   try {
     List<ViewManager> allViewManagers = new ArrayList<>();
     for (ReactPackage reactPackage : mPackages) {
       allViewManagers.addAll(reactPackage.createViewManagers(catalystApplicationContext));
     }
     return allViewManagers;
   } finally {
     Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
   }
 }