Browse Source

Send bottomTabSelectedEvent before switching tab

fixes #2711
Guy Carmeli 6 years ago
parent
commit
e0b57e9aa6

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

@@ -479,8 +479,8 @@ public class BottomTabsLayout extends BaseLayout implements AHBottomNavigation.O
479 479
         }
480 480
 
481 481
         final int unselectedTabIndex = currentStackIndex;
482
-        switchTab(position, NavigationType.BottomTabSelected);
483 482
         sendTabSelectedEventToJs(position, unselectedTabIndex);
483
+        switchTab(position, NavigationType.BottomTabSelected);
484 484
         return true;
485 485
     }
486 486