Kaynağa Gözat

fix failing test

Guy Carmeli 7 yıl önce
ebeveyn
işleme
016c6be5df

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/layout/bottomtabs/BottomTabsContainer.java Dosyayı Görüntüle

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