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
2020-12-04 11:01:30 -08:00
committed by Facebook GitHub Bot
parent 959bc47c18
commit fbf37092a8
3 changed files with 49 additions and 0 deletions
@@ -242,6 +242,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
public void onCatalystInstanceDestroy() {
super.onCatalystInstanceDestroy();
mEventDispatcher.onCatalystInstanceDestroyed();
mUIImplementation.onCatalystInstanceDestroyed();
getReactApplicationContext().unregisterComponentCallbacks(mMemoryTrimCallback);
YogaNodePool.get().clear();