Parcourir la source

Send bottomTabSelectedEvent before switching tab

fixes #2711
Guy Carmeli il y a 7 ans
Parent
révision
e0b57e9aa6

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/layouts/BottomTabsLayout.java Voir le fichier

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