diff --git a/.changeset/pretty-spoons-learn.md b/.changeset/pretty-spoons-learn.md new file mode 100644 index 00000000..ac0eb7c1 --- /dev/null +++ b/.changeset/pretty-spoons-learn.md @@ -0,0 +1,5 @@ +--- +"react-native-bottom-tabs": patch +--- + +fix(ios): do not add badges on Apple TV diff --git a/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift b/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift index 229445f6..e91daa15 100644 --- a/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift +++ b/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift @@ -39,7 +39,9 @@ struct NewTabView: AnyTabView { labeled: props.labeled ) } + #if !os(tvOS) .badge(tabData.badge.flatMap { !$0.isEmpty ? Text($0) : nil }) + #endif .accessibilityIdentifier(tabData.testID ?? "") } }