@Deprecated 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 LazyReactPackage
Use ReactPackage
or LazyReactPackage
and inject reactInstanceManager as a part of when plugins are initialized.Constructor and Description |
---|
ReactInstancePackage()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<NativeModule> |
createNativeModules(ReactApplicationContext reactContext)
Deprecated.
|
abstract java.util.List<NativeModule> |
createNativeModules(ReactApplicationContext reactContext,
ReactInstanceManager reactInstanceManager)
Deprecated.
|
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