mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
properly clean up ReactAppTestActivity
Reviewed By: achen1 Differential Revision: D5183260 fbshipit-source-id: 263a289ff2332b39693830f77e705544e10b18ff
This commit is contained in:
parent
844a18fb25
commit
e9e2de0ca2
@ -99,6 +99,11 @@ public class ReactAppTestActivity extends FragmentActivity implements
|
||||
|
||||
if (mReactInstanceManager != null) {
|
||||
mReactInstanceManager.destroy();
|
||||
mReactInstanceManager = null;
|
||||
}
|
||||
if (mReactRootView != null) {
|
||||
mReactRootView.unmountReactApplication();
|
||||
mReactRootView = null;
|
||||
}
|
||||
|
||||
mScreenshotingFrameLayout.clean();
|
||||
@ -129,6 +134,9 @@ public class ReactAppTestActivity extends FragmentActivity implements
|
||||
mReactInstanceManager.destroy();
|
||||
mReactInstanceManager = null;
|
||||
}
|
||||
if (mReactRootView != null) {
|
||||
mReactRootView.unmountReactApplication();
|
||||
}
|
||||
mReactRootView = new ReactRootView(this);
|
||||
mScreenshotingFrameLayout.removeAllViews();
|
||||
mScreenshotingFrameLayout.clean();
|
||||
|
Loading…
x
Reference in New Issue
Block a user