mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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();
|
||||
|
||||
Reference in New Issue
Block a user