From 9776174ca6b030f8fcb6b4142d5d41c57519a00d Mon Sep 17 00:00:00 2001 From: freddy Date: Mon, 25 Mar 2024 18:06:04 +0100 Subject: [PATCH] fix some stack header props --- src/Elements.res | 20 ++++++++++---------- src/Stack.res | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Elements.res b/src/Elements.res index 48de137..eccb707 100644 --- a/src/Elements.res +++ b/src/Elements.res @@ -2,23 +2,23 @@ open ReactNative module Header = { type headerTitleProps = { - allowFontScaling: bool, - tintColor: Color.t, - style: Style.t, + allowFontScaling: option, + tintColor: option, + style: option, children: string, } type headerLeftProps = { - tintColor: Color.t, - pressColor: Color.t, - pressOpacity: float, - labelVisible: bool, + tintColor: option, + pressColor: option, + pressOpacity: option, + labelVisible: option, } type headerRightProps = { - tintColor: Color.t, - pressColor: Color.t, - pressOpacity: float, + tintColor: option, + pressColor: option, + pressOpacity: option, } type headerBackgroundOptions = {style: option} diff --git a/src/Stack.res b/src/Stack.res index 5ad81ce..feea297 100644 --- a/src/Stack.res +++ b/src/Stack.res @@ -123,7 +123,7 @@ type rec options = { headerShown?: bool, headerBackAllowFontScaling?: bool, headerBackAccessibilityLabel?: string, - headerBackImage?: headerBackImageProps, + headerBackImage?: headerBackImageProps => React.element, headerBackTitle?: string, headerBackTitleVisible?: bool, headerTruncatedBackTitle?: string,