瀏覽代碼

Remove screenStack on JS reload

Guy Carmeli 8 年之前
父節點
當前提交
613f2b0c9f
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      android/app/src/main/java/com/reactnativenavigation/layouts/BottomTabsLayout.java

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/layouts/BottomTabsLayout.java 查看文件

@@ -141,6 +141,7 @@ public class BottomTabsLayout extends RelativeLayout implements Layout, AHBottom
141 141
     public void destroy() {
142 142
         for (ScreenStack screenStack : screenStacks) {
143 143
             screenStack.destroy();
144
+            removeView(screenStack);
144 145
         }
145 146
     }
146 147