getNativeModule

abstract fun <T : NativeModule?> getNativeModule(nativeModuleInterface: Class<T>): T
abstract fun getNativeModule(moduleName: String): NativeModule

Return

the instance of the specified module interface associated with this ReactContext.