Skip to content

Commit c54c059

Browse files
committed
feat: implement enum TabBarRole
1 parent a6b2aa6 commit c54c059

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ internal enum MinimizeBehavior: String {
2323
#endif
2424
}
2525

26+
public enum TabBarRole: String {
27+
case search
28+
29+
@available(iOS 18, macOS 15, visionOS 2, tvOS 18, *)
30+
func convert() -> TabRole {
31+
switch self {
32+
case .search:
33+
return .search
34+
}
35+
}
36+
}
37+
2638
/**
2739
Props that component accepts. SwiftUI view gets re-rendered when ObservableObject changes.
2840
*/

0 commit comments

Comments
 (0)