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
 
97
 
98
     @Override
98
     @Override
99
     public void onDismiss(DialogInterface dialog) {
99
     public void onDismiss(DialogInterface dialog) {
100
+        mScreenStack.removeAllReactViews();
100
         ModalController.getInstance().remove();
101
         ModalController.getInstance().remove();
101
         // After modal is dismissed, update Toolbar with screen from parent activity or previously displayed modal
102
         // After modal is dismissed, update Toolbar with screen from parent activity or previously displayed modal
102
         BaseReactActivity context = ContextProvider.getActivityContext();
103
         BaseReactActivity context = ContextProvider.getActivityContext();