ソースを参照

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
         }
479
         }
480
 
480
 
481
         final int unselectedTabIndex = currentStackIndex;
481
         final int unselectedTabIndex = currentStackIndex;
482
-        switchTab(position, NavigationType.BottomTabSelected);
483
         sendTabSelectedEventToJs(position, unselectedTabIndex);
482
         sendTabSelectedEventToJs(position, unselectedTabIndex);
483
+        switchTab(position, NavigationType.BottomTabSelected);
484
         return true;
484
         return true;
485
     }
485
     }
486
 
486