public abstract class ReactInstancePackage extends java.lang.Object implements ReactPackage
ReactInstanceManager
when creating native modules. This is useful when the package needs to ask
the instance manager for more information, like DevSupportManager
.
TODO(t11394819): Consolidate this with LazyReactPackageConstructor and Description |
---|
ReactInstancePackage() |
Modifier and Type | Method and Description |
---|---|
java.util.List<NativeModule> |
createNativeModules(ReactApplicationContext reactContext) |
abstract java.util.List<NativeModule> |
createNativeModules(ReactApplicationContext reactContext,
ReactInstanceManager reactInstanceManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createViewManagers
public abstract java.util.List<NativeModule> createNativeModules(ReactApplicationContext reactContext, ReactInstanceManager reactInstanceManager)
public java.util.List<NativeModule> createNativeModules(ReactApplicationContext reactContext)
createNativeModules
in interface ReactPackage
reactContext
- react application context that can be used to create modules