public abstract class LazyReactPackage extends java.lang.Object implements ReactPackage
TODO(t11394819): Make this default and deprecate ReactPackage
Constructor and Description |
---|
LazyReactPackage() |
Modifier and Type | Method and Description |
---|---|
java.util.List<NativeModule> |
createNativeModules(ReactApplicationContext reactContext)
This is only used when a LazyReactPackage is a part of
CompositeReactPackage Once we
deprecate CompositeReactPackage , this can be removed too |
java.util.List<ViewManager> |
createViewManagers(ReactApplicationContext reactContext) |
protected abstract java.util.List<ModuleSpec> |
getNativeModules(ReactApplicationContext reactContext) |
abstract ReactModuleInfoProvider |
getReactModuleInfoProvider() |
static ReactModuleInfoProvider |
getReactModuleInfoProviderViaReflection(LazyReactPackage lazyReactPackage) |
java.util.List<ModuleSpec> |
getViewManagers(ReactApplicationContext reactContext) |
public static ReactModuleInfoProvider getReactModuleInfoProviderViaReflection(LazyReactPackage lazyReactPackage)
protected abstract java.util.List<ModuleSpec> getNativeModules(ReactApplicationContext reactContext)
reactContext
- react application context that can be used to create modulespublic final java.util.List<NativeModule> createNativeModules(ReactApplicationContext reactContext)
CompositeReactPackage
Once we
deprecate CompositeReactPackage
, this can be removed toocreateNativeModules
in interface ReactPackage
reactContext
- react application context that can be used to create modulespublic java.util.List<ModuleSpec> getViewManagers(ReactApplicationContext reactContext)
reactContext
- react application context that can be used to create View Managers.public java.util.List<ViewManager> createViewManagers(ReactApplicationContext reactContext)
createViewManagers
in interface ReactPackage
UIManagerModule
public abstract ReactModuleInfoProvider getReactModuleInfoProvider()