TurboModuleManager

This is the main class and entry point for TurboModules. Note that this is a hybrid class, and has a C++ counterpart This class installs the JSI bindings. It also implements the method to get a Java module, that the C++ counterpart calls.

Constructors

Link copied to clipboard
constructor(runtimeExecutor: RuntimeExecutor, @Nullable delegate: TurboModuleManagerDelegate, jsCallInvokerHolder: CallInvokerHolder, nativeMethodCallInvokerHolder: NativeMethodCallInvokerHolder)

Functions

Link copied to clipboard
Return the names of all the NativeModules that are supposed to be eagerly initialized.
Link copied to clipboard
open fun getModule(moduleName: String): NativeModule
Return the NativeModule instance that corresponds to the provided moduleName.
Link copied to clipboard
Which NativeModules have been created?
Link copied to clipboard
open fun hasModule(moduleName: String): Boolean
Has the NativeModule with name moduleName been instantiated?
Link copied to clipboard
open fun invalidate()
Called during the turn down process of ReactHost.