Disable non-Fabric view operations after catalyst instance is destroyed

Summary: Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D25248836

fbshipit-source-id: 9afb0c18e7825d32857f746b038268758afaaaa8
This commit is contained in:
Andrei Shikov authored and Facebook GitHub Bot committed 2020-12-04 11:03:34 -08:00
1 parent 959bc47c18
commit fbf37092a8
3 files changed
+49

No files matched your search

@@ -242,6 +242,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
public void onCatalystInstanceDestroy() {
super.onCatalystInstanceDestroy();
mEventDispatcher.onCatalystInstanceDestroyed();
mUIImplementation.onCatalystInstanceDestroyed();
getReactApplicationContext().unregisterComponentCallbacks(mMemoryTrimCallback);
YogaNodePool.get().clear();