question: public CompositeReactPackage ( ReactPackage arg1 , ReactPackage arg2 , ReactPackage ... args ) { mChildReactPackages . add ( arg1 ) ; mChildReactPackages . add ( arg2 ) ; for ( ReactPackage reactPackage : args ) { mChildReactPackages . add ( reactPackage ) ; } }
target:  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.