mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessReactContext.kt
Reviewed By: ianlevesque Differential Revision: D83924405
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8ed0e1eba5
commit
c706c75309
+2
-2
@@ -126,7 +126,7 @@ internal class BridgelessReactContext(context: Context, private val reactHost: R
|
||||
}
|
||||
|
||||
override fun <T : JavaScriptModule> getJSModule(jsInterface: Class<T>): T? {
|
||||
mInteropModuleRegistry?.getInteropModule(jsInterface)?.let {
|
||||
mInteropModuleRegistry?.getInteropModule(jsInterface)?.let { interopModule ->
|
||||
if (jsInterface == RCTEventEmitter::class.java) {
|
||||
logSoftException(
|
||||
TAG,
|
||||
@@ -135,7 +135,7 @@ internal class BridgelessReactContext(context: Context, private val reactHost: R
|
||||
),
|
||||
)
|
||||
}
|
||||
return it
|
||||
return interopModule
|
||||
}
|
||||
|
||||
// TODO T189052462: ReactContext caches JavaScriptModule instances
|
||||
|
||||
Reference in New Issue
Block a user