@@ -6,6 +6,16 @@ open ReactNative
66
77type tabBarLabelPosition = [# "below-icon" | # "beside-icon" ]
88
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+
919type tabBarIconOptions = {
1020 focused : bool ,
1121 color : string ,
@@ -31,7 +41,6 @@ type rec options = {
3141 tabBarAccessibilityLabel ?: string ,
3242 tabBarButtonTestID ?: string ,
3343 tabBarButton ?: unit => React .element , // TODO: props
34- tabBarColor ?: Color .t ,
3544 tabBarActiveTintColor ?: string ,
3645 tabBarInactiveTintColor ?: string ,
3746 tabBarActiveBackgroundColor ?: string ,
@@ -40,12 +49,15 @@ type rec options = {
4049 tabBarItemStyle ?: Style .t ,
4150 tabBarStyle ?: Style .t ,
4251 tabBarBackground ?: unit => React .element ,
52+ tabBarPosition ?: tabBarPosition ,
53+ tabBarVariant ?: tabBarVariant ,
4354 sceneStyle ?: Style .t ,
4455 \"lazy" ?: bool ,
4556 popToTopOnBlur ?: bool ,
4657 freezeOnBlur ?: bool ,
4758 header ?: headerParams => React .element ,
4859 headerShown ?: bool ,
60+ animation ?: animation ,
4961 // Header props from https://reactnavigation.org/docs/elements#header
5062 headerTitle ?: Header .headerTitle ,
5163 headerTitleAlign ?: Header .headerTitleAlign ,
0 commit comments