Skip to content

Commit efe1ff9

Browse files
fix(ios): do not add badges on Apple TV (#416)
* fix: do not add badges on Apple TV * Create pretty-spoons-learn.md --------- Co-authored-by: Oskar Kwaśniewski <[email protected]>
1 parent d441ad6 commit efe1ff9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/pretty-spoons-learn.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(ios): do not add badges on Apple TV

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ struct NewTabView: AnyTabView {
3939
labeled: props.labeled
4040
)
4141
}
42+
#if !os(tvOS)
4243
.badge(tabData.badge.flatMap { !$0.isEmpty ? Text($0) : nil })
44+
#endif
4345
.accessibilityIdentifier(tabData.testID ?? "")
4446
}
4547
}

0 commit comments

Comments
 (0)