Browse Source

Set layout style after modal dismiss

Guy Carmeli 6 years ago
parent
commit
0ef6c03bbc

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

@@ -318,6 +318,7 @@ public class BottomTabsLayout extends BaseLayout implements AHBottomNavigation.O
318 318
 
319 319
     @Override
320 320
     public void onModalDismissed() {
321
+        getCurrentScreenStack().peek().setStyle();
321 322
         getCurrentScreenStack().peek().getScreenParams().timestamp = System.currentTimeMillis();
322 323
         NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(getCurrentScreenStack().peek().getScreenParams(), NavigationType.DismissModal);
323 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,6 +304,7 @@ public class SingleScreenLayout extends BaseLayout {
304 304
 
305 305
     @Override
306 306
     public void onModalDismissed() {
307
+        stack.peek().setStyle();
307 308
         stack.peek().getScreenParams().timestamp = System.currentTimeMillis();
308 309
         NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(stack.peek().getScreenParams(), NavigationType.DismissModal);
309 310
         NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(stack.peek().getScreenParams(), NavigationType.DismissModal);