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