File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,19 @@ module TabBarBadge = {
2828 external string : string => t = "%identity"
2929}
3030
31+ type tabBarLabelArgs = {
32+ focused : bool ,
33+ color : string ,
34+ position : tabBarLabelPosition ,
35+ children : string ,
36+ }
37+
38+ @unboxed
39+ type tabBarLabel = String (string ) | Function (tabBarLabelArgs => React .element )
40+
3141type rec options = {
3242 title ?: string ,
33- tabBarLabel ?: string ,
43+ tabBarLabel ?: tabBarLabel ,
3444 tabBarShowLabel ?: bool ,
3545 tabBarLabelPosition ?: tabBarLabelPosition ,
3646 tabBarLabelStyle ?: Style .t ,
Original file line number Diff line number Diff line change @@ -16,11 +16,20 @@ module TabBarBadge = {
1616 external string : string => t = "%identity"
1717}
1818
19+ type tabBarLabelArgs = {
20+ focused : bool ,
21+ color : string ,
22+ children : string ,
23+ }
24+
25+ @unboxed
26+ type tabBarLabel = String (string ) | Function (tabBarLabelArgs => React .element )
27+
1928type options = {
2029 title ?: string ,
2130 tabBarIcon ?: tabBarIconOptions => React .element ,
2231 tabBarColor ?: Color .t ,
23- tabBarLabel ?: string ,
32+ tabBarLabel ?: tabBarLabel ,
2433 tabBarBadge ?: TabBarBadge .t ,
2534 tabBarAccessibilityLabel ?: string ,
2635 tabBarTestID ?: string ,
You can’t perform that action at this time.
0 commit comments