Skip to content

Commit 9776174

Browse files
committed
fix some stack header props
1 parent 1837461 commit 9776174

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Diff for: src/Elements.res

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ open ReactNative
22

33
module Header = {
44
type headerTitleProps = {
5-
allowFontScaling: bool,
6-
tintColor: Color.t,
7-
style: Style.t,
5+
allowFontScaling: option<bool>,
6+
tintColor: option<Color.t>,
7+
style: option<Style.t>,
88
children: string,
99
}
1010

1111
type headerLeftProps = {
12-
tintColor: Color.t,
13-
pressColor: Color.t,
14-
pressOpacity: float,
15-
labelVisible: bool,
12+
tintColor: option<Color.t>,
13+
pressColor: option<Color.t>,
14+
pressOpacity: option<float>,
15+
labelVisible: option<bool>,
1616
}
1717

1818
type headerRightProps = {
19-
tintColor: Color.t,
20-
pressColor: Color.t,
21-
pressOpacity: float,
19+
tintColor: option<Color.t>,
20+
pressColor: option<Color.t>,
21+
pressOpacity: option<float>,
2222
}
2323

2424
type headerBackgroundOptions = {style: option<Style.t>}

Diff for: src/Stack.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ type rec options = {
123123
headerShown?: bool,
124124
headerBackAllowFontScaling?: bool,
125125
headerBackAccessibilityLabel?: string,
126-
headerBackImage?: headerBackImageProps,
126+
headerBackImage?: headerBackImageProps => React.element,
127127
headerBackTitle?: string,
128128
headerBackTitleVisible?: bool,
129129
headerTruncatedBackTitle?: string,

0 commit comments

Comments
 (0)