diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java index b78f11756fe68d..8803b1983d98d8 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java @@ -103,7 +103,6 @@ public String toString() { private JavaScriptContextHolder mJavaScriptContextHolder; private volatile @Nullable TurboModuleRegistry mTurboModuleRegistry = null; - private @Nullable JSIModule mTurboModuleManagerJSIModule = null; // C++ parts private final HybridData mHybridData; @@ -369,8 +368,8 @@ public void run() { @Override public void run() { // We need to destroy the TurboModuleManager on the JS Thread - if (mTurboModuleManagerJSIModule != null) { - mTurboModuleManagerJSIModule.invalidate(); + if (mTurboModuleRegistry != null) { + mTurboModuleRegistry.invalidate(); } getReactQueueConfiguration() @@ -586,7 +585,6 @@ public void run() { public void setTurboModuleManager(JSIModule module) { mTurboModuleRegistry = (TurboModuleRegistry) module; - mTurboModuleManagerJSIModule = module; } private void decrementPendingJSCalls() {