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 2860e83 commit eda7653Copy full SHA for eda7653
packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift
@@ -17,13 +17,7 @@ struct NewTabView: AnyTabView {
17
18
if !tabData.hidden || isFocused {
19
let icon = props.icons[index]
20
- var role: TabRole? {
21
- if tabData.role == "search" {
22
- return .search
23
- }
24
-
25
- return nil
26
+ let role = tabData.role?.convert() ?? nil
27
28
let platformChild = props.children[safe: index] ?? PlatformView()
29
let child = RepresentableView(view: platformChild)
0 commit comments