File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,19 @@ module TabBarBadge = {
28
28
external string : string => t = "%identity"
29
29
}
30
30
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
+
31
41
type rec options = {
32
42
title ?: string ,
33
- tabBarLabel ?: string ,
43
+ tabBarLabel ?: tabBarLabel ,
34
44
tabBarShowLabel ?: bool ,
35
45
tabBarLabelPosition ?: tabBarLabelPosition ,
36
46
tabBarLabelStyle ?: Style .t ,
Original file line number Diff line number Diff line change @@ -16,11 +16,20 @@ module TabBarBadge = {
16
16
external string : string => t = "%identity"
17
17
}
18
18
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
+
19
28
type options = {
20
29
title ?: string ,
21
30
tabBarIcon ?: tabBarIconOptions => React .element ,
22
31
tabBarColor ?: Color .t ,
23
- tabBarLabel ?: string ,
32
+ tabBarLabel ?: tabBarLabel ,
24
33
tabBarBadge ?: TabBarBadge .t ,
25
34
tabBarAccessibilityLabel ?: string ,
26
35
tabBarTestID ?: string ,
You can’t perform that action at this time.
0 commit comments