Skip to content

Commit 7eec56c

Browse files
committed
added missing props
1 parent 246d25e commit 7eec56c

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/BottomTabs.res

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ 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 = {
21+
type tabBarLabelArgs = {
2422
focused: bool,
2523
color: string,
2624
position: tabBarLabelPosition,
25+
children: string,
2726
}
2827

28+
@unboxed
29+
type tabBarLabel = String(string) | Function(tabBarLabelArgs => React.element)
30+
2931
type rec options = {
3032
title?: string,
3133
tabBarLabel?: tabBarLabel,

src/MaterialBottomTabs.res

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ module TabBarBadge = {
1616
external string: string => t = "%identity"
1717
}
1818

19+
type tabBarLabelArgs = {
20+
focused: bool,
21+
color: string,
22+
children: string,
23+
}
24+
1925
@unboxed
20-
type rec tabBarLabel = String(string) | Function(tabBarLabelArgs => React.element)
21-
and tabBarLabelArgs = {focused: bool, color: string}
26+
type tabBarLabel = String(string) | Function(tabBarLabelArgs => React.element)
2227

2328
type options = {
2429
title?: string,

0 commit comments

Comments
 (0)