File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/react-native-bottom-tabs/android/src/main/java/com/rcttabview Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' react-native-bottom-tabs ' : patch
3
+ ---
4
+
5
+ fix: don't show a default tab bar on top of a custom one when changing theme
Original file line number Diff line number Diff line change @@ -458,6 +458,11 @@ class ReactBottomNavigationView(context: Context) : LinearLayout(context) {
458
458
return
459
459
}
460
460
461
+ // User has hidden the bottom navigation bar, don't re-attach it.
462
+ if (bottomNavigation.visibility == GONE ) {
463
+ return
464
+ }
465
+
461
466
// If appearance wasn't changed re-create the bottom navigation view when configuration changes.
462
467
// React Native opts out ouf Activity re-creation when configuration changes, this workarounds that.
463
468
// We also opt-out of this recreation when custom styles are used.
You can’t perform that action at this time.
0 commit comments