Unregister UIManagerModule from LifecycleEventListener

Summary:
This diff unregisters the UIManagerModule from LifecycleEventListener during turn down of the bridge.

changelog: [internal] internal

Reviewed By: JoshuaGross

Differential Revision: D26239156

fbshipit-source-id: b230949228c6e580cca088c395b970a3cff94839
This commit is contained in:
David Vacca
2021-02-06 23:02:02 -08:00
committed by Facebook GitHub Bot
parent d7191f80e8
commit 1e8c3e4ad8
@@ -247,6 +247,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
mEventDispatcher.onCatalystInstanceDestroyed();
mUIImplementation.onCatalystInstanceDestroyed();
getReactApplicationContext().removeLifecycleEventListener(this);
getReactApplicationContext().unregisterComponentCallbacks(mMemoryTrimCallback);
YogaNodePool.get().clear();
ViewManagerPropertyUpdater.clear();