Browse Source

always calls unmount on pop now

Yedidya Kennard 8 years ago
parent
commit
e22feae634

+ 2
- 0
android/app/src/main/java/com/reactnativenavigation/views/ScreenStack.java View File

@@ -60,6 +60,8 @@ public class ScreenStack extends FrameLayout {
60 60
         if(!stack.isEmpty()) {
61 61
             addView(stack.peek().view, 0);
62 62
         }
63
+
64
+        ReflectionUtils.setBooleanField(popped.view.getReactRootView(), "mAttachScheduled", false);
63 65
         removeView(popped.view);
64 66
         return popped.screen;
65 67
     }