-
- All Implemented Interfaces:
-
com.facebook.react.ReactPackage
@Deprecated() public abstract class ReactInstancePackage implements ReactPackage
A simple wrapper for ReactPackage to make it aware of its 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 and inject reactInstanceManager as a part of when plugins are initialized.
-
-
Method Summary
Modifier and Type Method Description abstract List<NativeModule>
createNativeModules(ReactApplicationContext reactContext, ReactInstanceManager reactInstanceManager)
List<NativeModule>
createNativeModules(ReactApplicationContext reactContext)
-
-
Method Detail
-
createNativeModules
abstract List<NativeModule> createNativeModules(ReactApplicationContext reactContext, ReactInstanceManager reactInstanceManager)
-
createNativeModules
List<NativeModule> createNativeModules(ReactApplicationContext reactContext)
- Parameters:
reactContext
- react application context that can be used to create modules
-
-
-
-