浏览代码

fix failing test

Guy Carmeli 7 年前
父节点
当前提交
016c6be5df

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/layout/bottomtabs/BottomTabsContainer.java 查看文件

@@ -19,7 +19,7 @@ public class BottomTabsContainer extends RelativeLayout implements BottomTabs.Bo
19 19
     }
20 20
 
21 21
     public void addTabContent(String label, View tabContent) {
22
-        if (tabsContent.size() > 5) {
22
+        if (tabsContent.size() == 5) {
23 23
             throw new TooManyTabsException();
24 24
         }
25 25
         bottomTabs.add(label);