Browse Source

Support bottomTabsHidden

Guy Carmeli 8 years ago
parent
commit
c284e5a67f

+ 6
- 0
android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java View File

@@ -37,6 +37,8 @@ public class BottomTabs extends AHBottomNavigation {
37 37
         if (params.selectedBottomTabsButtonColor.hasColor()) {
38 38
             setAccentColor(params.selectedBottomTabsButtonColor.getColor());
39 39
         }
40
+
41
+        setVisibility(params.bottomTabsHidden);
40 42
     }
41 43
 
42 44
     private void setBackgroundColor(StyleParams.Color bottomTabsColor) {
@@ -46,4 +48,8 @@ public class BottomTabs extends AHBottomNavigation {
46 48
             setDefaultBackgroundColor(Color.WHITE);
47 49
         }
48 50
     }
51
+
52
+    private void setVisibility(boolean bottomTabsHidden) {
53
+        setVisibility(bottomTabsHidden ? GONE : VISIBLE);
54
+    }
49 55
 }