Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9776174

Browse files
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

‎src/Elements.res‎

Lines changed: 10 additions & 10 deletions
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>}

‎src/Stack.res‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /