-
- All Implemented Interfaces:
-
com.facebook.react.ReactPackage,com.facebook.react.ViewManagerOnDemandReactPackage
public class CompositeReactPackage implements ViewManagerOnDemandReactPackage, ReactPackage
{@code CompositeReactPackage}allows to create a single package composed of views and modules from several other packages.
-
-
Constructor Summary
Constructors Constructor Description CompositeReactPackage(ReactPackage arg1, ReactPackage arg2, Array<ReactPackage> args)The order in which packages are passed matters.
-
Method Summary
Modifier and Type Method Description List<NativeModule>createNativeModules(ReactApplicationContext reactContext)List<ViewManager>createViewManagers(ReactApplicationContext reactContext)List<String>getViewManagerNames(ReactApplicationContext reactContext)Provides a list of names of ViewManagers with which these modules can be accessed from JS.Typically, this is ViewManager.getName(). ViewManagercreateViewManager(ReactApplicationContext reactContext, String viewManagerName)Creates and returns a ViewManager with a specific name viewManagerName. -
Methods inherited from class com.facebook.react.ViewManagerOnDemandReactPackage
createViewManager -
Methods inherited from class com.facebook.react.ReactPackage
createNativeModules, createViewManagers -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CompositeReactPackage
CompositeReactPackage(ReactPackage arg1, ReactPackage arg2, Array<ReactPackage> args)
The order in which packages are passed matters.
-
-
Method Detail
-
createNativeModules
List<NativeModule> createNativeModules(ReactApplicationContext reactContext)
-
createViewManagers
List<ViewManager> createViewManagers(ReactApplicationContext reactContext)
-
getViewManagerNames
List<String> getViewManagerNames(ReactApplicationContext reactContext)
Provides a list of names of ViewManagers with which these modules can be accessed from JS.Typically, this is ViewManager.getName().
-
createViewManager
@Nullable() ViewManager createViewManager(ReactApplicationContext reactContext, String viewManagerName)
Creates and returns a ViewManager with a specific name viewManagerName. It's up to animplementing package how to interpret the name.
-
-
-
-