Skip to content

Commit

Permalink
fix some stack header props
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddy03h committed Mar 25, 2024
1 parent 1837461 commit 9776174
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/Elements.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ open ReactNative

module Header = {
type headerTitleProps = {
allowFontScaling: bool,
tintColor: Color.t,
style: Style.t,
allowFontScaling: option<bool>,
tintColor: option<Color.t>,
style: option<Style.t>,
children: string,
}

type headerLeftProps = {
tintColor: Color.t,
pressColor: Color.t,
pressOpacity: float,
labelVisible: bool,
tintColor: option<Color.t>,
pressColor: option<Color.t>,
pressOpacity: option<float>,
labelVisible: option<bool>,
}

type headerRightProps = {
tintColor: Color.t,
pressColor: Color.t,
pressOpacity: float,
tintColor: option<Color.t>,
pressColor: option<Color.t>,
pressOpacity: option<float>,
}

type headerBackgroundOptions = {style: option<Style.t>}
Expand Down
2 changes: 1 addition & 1 deletion src/Stack.res
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9776174

Please sign in to comment.