public class CompositeReactPackage extends java.lang.Object implements ViewManagerOnDemandReactPackage, ReactPackage
CompositeReactPackage allows to create a single package composed of views and modules
from several other packages.| Constructor and Description |
|---|
CompositeReactPackage(ReactPackage arg1,
ReactPackage arg2,
ReactPackage... args)
The order in which packages are passed matters.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<NativeModule> |
createNativeModules(ReactApplicationContext reactContext) |
ViewManager |
createViewManager(ReactApplicationContext reactContext,
java.lang.String viewManagerName)
Creates and returns a ViewManager with a specific name .
|
java.util.List<ViewManager> |
createViewManagers(ReactApplicationContext reactContext) |
java.util.List<java.lang.String> |
getViewManagerNames(ReactApplicationContext reactContext)
Provides a list of names of ViewManagers with which these modules can be accessed from JS.
|
public CompositeReactPackage(ReactPackage arg1, ReactPackage arg2, ReactPackage... args)
public java.util.List<NativeModule> createNativeModules(ReactApplicationContext reactContext)
createNativeModules in interface ReactPackagereactContext - react application context that can be used to create modulespublic java.util.List<ViewManager> createViewManagers(ReactApplicationContext reactContext)
createViewManagers in interface ReactPackageUIManagerModulepublic java.util.List<java.lang.String> getViewManagerNames(ReactApplicationContext reactContext)
getViewManagerNames in interface ViewManagerOnDemandReactPackagepublic ViewManager createViewManager(ReactApplicationContext reactContext, java.lang.String viewManagerName)
createViewManager in interface ViewManagerOnDemandReactPackage