File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,13 @@ module TabBarBadge = {
1818 external string : string => t = "%identity"
1919}
2020
21+ @unboxed
22+ type rec tabBarLabel = String (string ) | Function (tabBarLabelArgs => React .element )
23+ and tabBarLabelArgs = {focused : bool , color : string }
24+
2125type rec options = {
2226 title ?: string ,
23- tabBarLabel ?: string ,
27+ tabBarLabel ?: tabBarLabel ,
2428 tabBarShowLabel ?: bool ,
2529 tabBarLabelPosition ?: tabBarLabelPosition ,
2630 tabBarLabelStyle ?: Style .t ,
Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ module TabBarBadge = {
1616 external string : string => t = "%identity"
1717}
1818
19+ @unboxed
20+ type rec tabBarLabel = String (string ) | Function (tabBarLabelArgs => React .element )
21+ and tabBarLabelArgs = {focused : bool , color : string }
22+
1923type options = {
2024 title ?: string ,
2125 tabBarIcon ?: tabBarIconOptions => React .element ,
2226 tabBarColor ?: Color .t ,
23- tabBarLabel ?: string ,
27+ tabBarLabel ?: tabBarLabel ,
2428 tabBarBadge ?: TabBarBadge .t ,
2529 tabBarAccessibilityLabel ?: string ,
2630 tabBarTestID ?: string ,
You can’t perform that action at this time.
0 commit comments