Skip to content

Commit 1bad022

Browse files
committed
1 parent 1828b18 commit 1bad022

File tree

3 files changed

+324
-319
lines changed

3 files changed

+324
-319
lines changed

packages/react-native-bottom-tabs/ios/TabAppearModifier.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ struct TabAppearModifier: ViewModifier {
1313

1414
func body(content: Content) -> some View {
1515
content.onAppear {
16-
#if !os(macOS)
17-
context.updateTabBarAppearance()
18-
#endif
16+
#if !os(macOS)
17+
context.updateTabBarAppearance()
18+
#endif
1919

20-
#if os(iOS)
21-
if context.index >= 4, context.props.selectedPage != context.tabData.key {
22-
context.onSelect(context.tabData.key)
23-
}
24-
#endif
20+
#if os(iOS)
21+
if context.index >= 4, context.props.selectedPage != context.tabData.key {
22+
context.onSelect(context.tabData.key)
23+
}
24+
#endif
2525
}
2626
}
2727
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ struct NewTabView: AnyTabView {
4040
labeled: props.labeled
4141
)
4242
}
43-
.badge((tabData.badge == nil) ? nil : tabData.badge!.isEmpty ? nil : Text(tabData.badge!))
43+
.badge(
44+
(tabData.badge == nil) ? nil : tabData.badge!.isEmpty ? nil : Text(tabData.badge!)
45+
)
4446
.accessibilityIdentifier(tabData.testID ?? "")
4547
}
4648
}

0 commit comments

Comments
 (0)