Skip to content

Commit 14f9c04

Browse files
fix tabbar showing duplicates (#420)
* fix tabbar showing duplicates * feat: add changes --------- Co-authored-by: Oskar Kwaśniewski <oskarkwasniewski@icloud.com>
1 parent a7316f8 commit 14f9c04

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lemon-trainers-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-bottom-tabs": patch
3+
---
4+
5+
fix: tabbar showing duplicates on iOS

packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ struct NewTabView: AnyTabView {
3131
RepresentableView(view: child.view)
3232
.ignoresSafeArea(.container, edges: .all)
3333
.tabAppear(using: context)
34+
.hideTabBar(props.tabBarHidden)
3435
} label: {
3536
TabItem(
3637
title: tabData.title,
@@ -50,6 +51,5 @@ struct NewTabView: AnyTabView {
5051
.measureView { size in
5152
onLayout(size)
5253
}
53-
.hideTabBar(props.tabBarHidden)
5454
}
5555
}

0 commit comments

Comments
 (0)