Browse Source

fix failing test

Guy Carmeli 7 years ago
parent
commit
016c6be5df

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/layout/bottomtabs/BottomTabsContainer.java View File

19
     }
19
     }
20
 
20
 
21
     public void addTabContent(String label, View tabContent) {
21
     public void addTabContent(String label, View tabContent) {
22
-        if (tabsContent.size() > 5) {
22
+        if (tabsContent.size() == 5) {
23
             throw new TooManyTabsException();
23
             throw new TooManyTabsException();
24
         }
24
         }
25
         bottomTabs.add(label);
25
         bottomTabs.add(label);