Browse Source

Set BottomTabs visibility only if declared explicitly when calling mergeOptions

Fixes #3401
Guy Carmeli 6 years ago
parent
commit
2bb57a2993

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/presentation/BottomTabsOptionsPresenter.java View File

@@ -84,7 +84,7 @@ public class BottomTabsOptionsPresenter {
84 84
             int tabIndex = bottomTabFinder.findByControllerId(options.currentTabId.get());
85 85
             if (tabIndex >= 0) tabSelector.selectTab(tabIndex);
86 86
         }
87
-        if (options.visible.isTrueOrUndefined()) {
87
+        if (options.visible.isTrue()) {
88 88
             if (options.animate.isTrueOrUndefined()) {
89 89
                 animator.show(animations);
90 90
             } else {