瀏覽代碼

Send bottomTabSelectedEvent before switching tab

fixes #2711
Guy Carmeli 7 年之前
父節點
當前提交
e0b57e9aa6
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      android/app/src/main/java/com/reactnativenavigation/layouts/BottomTabsLayout.java

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/layouts/BottomTabsLayout.java 查看文件

@@ -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