Ver código fonte

Fix bottomTab not getting correct label on Android

Guy Carmeli 8 anos atrás
pai
commit
4c20adaa72

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java Ver arquivo

@@ -27,7 +27,7 @@ public class BottomTabs extends AHBottomNavigation {
27 27
 
28 28
     public void addTabs(List<ScreenParams> params, OnTabSelectedListener onTabSelectedListener) {
29 29
         for (ScreenParams screenParams : params) {
30
-            AHBottomNavigationItem item = new AHBottomNavigationItem(screenParams.title, screenParams.tabIcon,
30
+            AHBottomNavigationItem item = new AHBottomNavigationItem(screenParams.tabLabel, screenParams.tabIcon,
31 31
                     Color.GRAY);
32 32
             addItem(item);
33 33
             setOnTabSelectedListener(onTabSelectedListener);