public CompositeReactPackage(ReactPackage arg1,ReactPackage arg2,ReactPackage... args){
  mChildReactPackages.add(arg1);
  mChildReactPackages.add(arg2);
  for (  ReactPackage reactPackage : args) {
    mChildReactPackages.add(reactPackage);
  }
}

public CompositeReactPackage ( ReactPackage arg1 , ReactPackage arg2 , ReactPackage ... args ) { mChildReactPackages . add ( arg1 ) ; mChildReactPackages . add ( arg2 ) ; for ( ReactPackage reactPackage : args ) { mChildReactPackages . add ( reactPackage ) ; } }
the order in which packages are passed matters . it may happen that a nativemodule or or a viewmanager exists in two or more reactpackages . in that case the latter will win i . e . the latter will overwrite the former . this re - occurrence is detected by comparing a name of a module .
