Browse Source

Set layout style after modal dismiss

Guy Carmeli 7 years ago
parent
commit
0ef6c03bbc

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/layouts/BottomTabsLayout.java View File

318
 
318
 
319
     @Override
319
     @Override
320
     public void onModalDismissed() {
320
     public void onModalDismissed() {
321
+        getCurrentScreenStack().peek().setStyle();
321
         getCurrentScreenStack().peek().getScreenParams().timestamp = System.currentTimeMillis();
322
         getCurrentScreenStack().peek().getScreenParams().timestamp = System.currentTimeMillis();
322
         NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(getCurrentScreenStack().peek().getScreenParams(), NavigationType.DismissModal);
323
         NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(getCurrentScreenStack().peek().getScreenParams(), NavigationType.DismissModal);
323
         NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(getCurrentScreenStack().peek().getScreenParams(), NavigationType.DismissModal);
324
         NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(getCurrentScreenStack().peek().getScreenParams(), NavigationType.DismissModal);

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/layouts/SingleScreenLayout.java View File

304
 
304
 
305
     @Override
305
     @Override
306
     public void onModalDismissed() {
306
     public void onModalDismissed() {
307
+        stack.peek().setStyle();
307
         stack.peek().getScreenParams().timestamp = System.currentTimeMillis();
308
         stack.peek().getScreenParams().timestamp = System.currentTimeMillis();
308
         NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(stack.peek().getScreenParams(), NavigationType.DismissModal);
309
         NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(stack.peek().getScreenParams(), NavigationType.DismissModal);
309
         NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(stack.peek().getScreenParams(), NavigationType.DismissModal);
310
         NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(stack.peek().getScreenParams(), NavigationType.DismissModal);