Sfoglia il codice sorgente

Destroy screen when swapping screens

Guy Carmeli 7 anni fa
parent
commit
2b62f7c14d

+ 1
- 2
android/app/src/main/java/com/reactnativenavigation/screens/ScreenStack.java Vedi File

@@ -154,7 +154,6 @@ public class ScreenStack {
154 154
         if (!canPop()) {
155 155
             return;
156 156
         }
157
-
158 157
         if (keyboardVisibilityDetector.isKeyboardVisible()) {
159 158
             keyboardVisibilityDetector.setKeyboardCloseListener(new Runnable() {
160 159
                 @Override
@@ -181,7 +180,7 @@ public class ScreenStack {
181 180
         toRemove.hide(animated, new Runnable() {
182 181
             @Override
183 182
             public void run() {
184
-                toRemove.unmountReactView();
183
+                toRemove.destroy();
185 184
                 parent.removeView(toRemove);
186 185
             }
187 186
         });