diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.kt index dcf2e1946cd..d0c9df1942e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.kt @@ -46,7 +46,9 @@ public class NativeModuleRegistry( ) // This is needed till there are Java Consumer of this API inside React // Native internal fun registerModules(newRegister: NativeModuleRegistry) { - check(reactApplicationContext == newRegister.reactApplicationContext) { + val ownContext = reactApplicationContext + val otherContext = newRegister.reactApplicationContext + check(ownContext == otherContext) { "Extending native modules with non-matching application contexts." }