Browse Source

Unmount views after modal dismiss

Guy Carmeli 8 years ago
parent
commit
3d8d270cf8

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/modal/RnnModal.java View File

@@ -97,6 +97,7 @@ public class RnnModal extends Dialog implements DialogInterface.OnDismissListene
97 97
 
98 98
     @Override
99 99
     public void onDismiss(DialogInterface dialog) {
100
+        mScreenStack.removeAllReactViews();
100 101
         ModalController.getInstance().remove();
101 102
         // After modal is dismissed, update Toolbar with screen from parent activity or previously displayed modal
102 103
         BaseReactActivity context = ContextProvider.getActivityContext();