Skip to content

Commit

Permalink
优化Nativehost多bundle加载+
Browse files Browse the repository at this point in the history
  • Loading branch information
smartzhao committed Apr 18, 2018
1 parent 50f1ac8 commit 4486bdb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ public void onPause() {

public void onDestroy() {
ViewGroup parent;
if (mReactRootView != null) {
/* if (mReactRootView != null) {
parent = (ViewGroup) mReactRootView.getParent();
/* if (parent != null) {
*//* if (parent != null) {
parent.removeView(mReactRootView);
}*/
}*//*
mReactRootView.unmountReactApplication();
mReactRootView = null;
}
}*/
if (getReactNativeHost().hasInstance()) {
getReactInstanceManager().onHostDestroy(getPlainActivity());
}
Expand Down

0 comments on commit 4486bdb

Please sign in to comment.