public abstract class TurboReactPackage extends java.lang.Object implements ReactPackage
LazyReactPackage
when TurboModules are finally done.Constructor and Description |
---|
TurboReactPackage() |
Modifier and Type | Method and Description |
---|---|
java.util.List<NativeModule> |
createNativeModules(ReactApplicationContext reactContext) |
java.util.List<ViewManager> |
createViewManagers(ReactApplicationContext reactContext) |
abstract NativeModule |
getModule(java.lang.String name,
ReactApplicationContext reactContext)
The API needed for TurboModules.
|
java.lang.Iterable<ModuleHolder> |
getNativeModuleIterator(ReactApplicationContext reactContext)
This is a temporary method till we implement TurboModules.
|
abstract ReactModuleInfoProvider |
getReactModuleInfoProvider() |
protected java.util.List<ModuleSpec> |
getViewManagers(ReactApplicationContext reactContext) |
public java.util.List<NativeModule> createNativeModules(ReactApplicationContext reactContext)
createNativeModules
in interface ReactPackage
reactContext
- react application context that can be used to create modulespublic abstract NativeModule getModule(java.lang.String name, ReactApplicationContext reactContext)
NativeModule
for the namename
- reactContext
- public java.lang.Iterable<ModuleHolder> getNativeModuleIterator(ReactApplicationContext reactContext)
getModule(String,
ReactApplicationContext)
This method will be removed when TurboModule implementation is
completereactContext
- protected 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()