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
             int tabIndex = bottomTabFinder.findByControllerId(options.currentTabId.get());
84
             int tabIndex = bottomTabFinder.findByControllerId(options.currentTabId.get());
85
             if (tabIndex >= 0) tabSelector.selectTab(tabIndex);
85
             if (tabIndex >= 0) tabSelector.selectTab(tabIndex);
86
         }
86
         }
87
-        if (options.visible.isTrueOrUndefined()) {
87
+        if (options.visible.isTrue()) {
88
             if (options.animate.isTrueOrUndefined()) {
88
             if (options.animate.isTrueOrUndefined()) {
89
                 animator.show(animations);
89
                 animator.show(animations);
90
             } else {
90
             } else {