mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert D16552730: [RN][TurboModule] Perform cleanup when ReactApplicationContext is destroyed
Differential Revision: D16552730 Original commit changeset: 04459185262e fbshipit-source-id: af6ac53f2026385167ded3616926062161cb92aa
This commit is contained in:
committed by
Facebook Github Bot
parent
af4862ce32
commit
5263660c07
+1
-11
@@ -91,15 +91,5 @@ public class TurboModuleManager implements JSIModule, TurboModuleRegistry {
|
||||
public void initialize() {}
|
||||
|
||||
@Override
|
||||
public void onCatalystInstanceDestroy() {
|
||||
for (TurboModule turboModule : mTurboModules.values()) {
|
||||
// TODO(T48014458): Rename this to invalidate()
|
||||
((NativeModule) turboModule).onCatalystInstanceDestroy();
|
||||
}
|
||||
|
||||
mTurboModules.clear();
|
||||
|
||||
// Delete the native part of this hybrid class.
|
||||
mHybridData.resetNative();
|
||||
}
|
||||
public void onCatalystInstanceDestroy() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user