Skip to content

Commit 2860e83

Browse files
committed
feat: update TabInfo role type
1 parent c54c059 commit 2860e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public final class TabInfo: NSObject {
1313
public let activeTintColor: PlatformColor?
1414
public let hidden: Bool
1515
public let testID: String?
16-
public let role: String?
16+
public let role: TabBarRole?
1717

1818
public init(
1919
key: String,
@@ -32,7 +32,7 @@ public final class TabInfo: NSObject {
3232
self.activeTintColor = activeTintColor
3333
self.hidden = hidden
3434
self.testID = testID
35-
self.role = role
35+
self.role = TabBarRole(rawValue: role ?? "")
3636
super.init()
3737
}
3838
}

0 commit comments

Comments
 (0)