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
         if(!stack.isEmpty()) {
60
         if(!stack.isEmpty()) {
61
             addView(stack.peek().view, 0);
61
             addView(stack.peek().view, 0);
62
         }
62
         }
63
+
64
+        ReflectionUtils.setBooleanField(popped.view.getReactRootView(), "mAttachScheduled", false);
63
         removeView(popped.view);
65
         removeView(popped.view);
64
         return popped.screen;
66
         return popped.screen;
65
     }
67
     }