From 70e87c3e9741845cc5da48e0b949647d66e1440e Mon Sep 17 00:00:00 2001 From: Freddy Harris Date: Fri, 27 Dec 2024 12:28:55 +0100 Subject: [PATCH] new options for bottom tabs --- src/BottomTabs.res | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/BottomTabs.res b/src/BottomTabs.res index 79dd302..0b5471b 100644 --- a/src/BottomTabs.res +++ b/src/BottomTabs.res @@ -6,6 +6,16 @@ open ReactNative type tabBarLabelPosition = [#"below-icon" | #"beside-icon"] +type tabBarPosition = [#bottom | #top | #left | #right] + +type tabBarVariant = [#uikit | #material] + +type animation = [ + | #fade + | #shift + | #none +] + type tabBarIconOptions = { focused: bool, color: string, @@ -31,7 +41,6 @@ type rec options = { tabBarAccessibilityLabel?: string, tabBarButtonTestID?: string, tabBarButton?: unit => React.element, // TODO: props - tabBarColor?: Color.t, tabBarActiveTintColor?: string, tabBarInactiveTintColor?: string, tabBarActiveBackgroundColor?: string, @@ -40,12 +49,15 @@ type rec options = { tabBarItemStyle?: Style.t, tabBarStyle?: Style.t, tabBarBackground?: unit => React.element, + tabBarPosition?: tabBarPosition, + tabBarVariant?: tabBarVariant, sceneStyle?: Style.t, \"lazy"?: bool, popToTopOnBlur?: bool, freezeOnBlur?: bool, header?: headerParams => React.element, headerShown?: bool, + animation?: animation, // Header props from https://reactnavigation.org/docs/elements#header headerTitle?: Header.headerTitle, headerTitleAlign?: Header.headerTitleAlign,