@@ -6,6 +6,16 @@ open ReactNative
6
6
7
7
type tabBarLabelPosition = [# "below-icon" | # "beside-icon" ]
8
8
9
+ type tabBarPosition = [#bottom | #top | #left | #right ]
10
+
11
+ type tabBarVariant = [#uikit | #material ]
12
+
13
+ type animation = [
14
+ | #fade
15
+ | #shift
16
+ | #none
17
+ ]
18
+
9
19
type tabBarIconOptions = {
10
20
focused : bool ,
11
21
color : string ,
@@ -31,7 +41,6 @@ type rec options = {
31
41
tabBarAccessibilityLabel ?: string ,
32
42
tabBarButtonTestID ?: string ,
33
43
tabBarButton ?: unit => React .element , // TODO: props
34
- tabBarColor ?: Color .t ,
35
44
tabBarActiveTintColor ?: string ,
36
45
tabBarInactiveTintColor ?: string ,
37
46
tabBarActiveBackgroundColor ?: string ,
@@ -40,12 +49,15 @@ type rec options = {
40
49
tabBarItemStyle ?: Style .t ,
41
50
tabBarStyle ?: Style .t ,
42
51
tabBarBackground ?: unit => React .element ,
52
+ tabBarPosition ?: tabBarPosition ,
53
+ tabBarVariant ?: tabBarVariant ,
43
54
sceneStyle ?: Style .t ,
44
55
\"lazy" ?: bool ,
45
56
popToTopOnBlur ?: bool ,
46
57
freezeOnBlur ?: bool ,
47
58
header ?: headerParams => React .element ,
48
59
headerShown ?: bool ,
60
+ animation ?: animation ,
49
61
// Header props from https://reactnavigation.org/docs/elements#header
50
62
headerTitle ?: Header .headerTitle ,
51
63
headerTitleAlign ?: Header .headerTitleAlign ,
0 commit comments