-
- All Implemented Interfaces:
-
com.facebook.react.ReactPackage
public abstract class LazyReactPackage implements ReactPackage
React package supporting lazy creation of native modules.
TODO(t11394819): Make this default and deprecate ReactPackage
-
-
Method Summary
Modifier and Type Method Description static ReactModuleInfoProvider
getReactModuleInfoProviderViaReflection(LazyReactPackage lazyReactPackage)
Iterable<ModuleHolder>
getNativeModuleIterator(ReactApplicationContext reactContext)
We return an iterable final List<NativeModule>
createNativeModules(ReactApplicationContext reactContext)
This is only used when a LazyReactPackage is a part of CompositeReactPackage Once wedeprecate CompositeReactPackage, this can be removed too List<ModuleSpec>
getViewManagers(ReactApplicationContext reactContext)
List<ViewManager>
createViewManagers(ReactApplicationContext reactContext)
abstract ReactModuleInfoProvider
getReactModuleInfoProvider()
-
-
Method Detail
-
getReactModuleInfoProviderViaReflection
static ReactModuleInfoProvider getReactModuleInfoProviderViaReflection(LazyReactPackage lazyReactPackage)
-
getNativeModuleIterator
Iterable<ModuleHolder> getNativeModuleIterator(ReactApplicationContext reactContext)
We return an iterable
-
createNativeModules
final List<NativeModule> createNativeModules(ReactApplicationContext reactContext)
This is only used when a LazyReactPackage is a part of CompositeReactPackage Once wedeprecate CompositeReactPackage, this can be removed too
- Parameters:
reactContext
- react application context that can be used to create modules
-
getViewManagers
List<ModuleSpec> getViewManagers(ReactApplicationContext reactContext)
- Parameters:
reactContext
- react application context that can be used to create View Managers.
-
createViewManagers
List<ViewManager> createViewManagers(ReactApplicationContext reactContext)
-
getReactModuleInfoProvider
abstract ReactModuleInfoProvider getReactModuleInfoProvider()
-
-
-
-