We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c9ed2 commit bbcb542Copy full SHA for bbcb542
packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift
@@ -40,9 +40,7 @@ struct NewTabView: AnyTabView {
40
labeled: props.labeled
41
)
42
}
43
- .badge(
44
- (tabData.badge == nil) ? nil : tabData.badge!.isEmpty ? nil : Text(tabData.badge!)
45
- )
+ .badge(tabData.badge.flatMap { !$0.isEmpty ? Text($0) : nil })
46
.accessibilityIdentifier(tabData.testID ?? "")
47
48
0 commit comments