瀏覽代碼

Fix bottomTab not getting correct label on Android

Guy Carmeli 8 年之前
父節點
當前提交
4c20adaa72
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java

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

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