@@ -55,25 +55,29 @@ module Header = {
55
55
placeholder ?: string ,
56
56
}
57
57
58
- type headerOptions = {
58
+ type headerCommonOptions = {
59
59
headerTitle ?: headerTitle ,
60
60
headerTitleAlign ?: headerTitleAlign ,
61
- headerTitleAllowFontScaling ?: bool ,
61
+ headerLeft ?: headerLeftProps => React .element ,
62
+ headerRight ?: headerRightProps => React .element ,
63
+ headerTintColor ?: Color .t ,
64
+ headerBackground ?: headerBackgroundOptions => React .element ,
65
+ headerTransparent ?: bool ,
66
+ headerShadowVisible ?: bool ,
67
+ }
68
+
69
+ type headerOptions = {
70
+ ... headerCommonOptions ,
62
71
headerTitleStyle ?: Style .t ,
72
+ headerTitleAllowFontScaling ?: bool ,
63
73
headerTitleContainerStyle ?: Style .t ,
64
- headerLeft ?: headerLeftProps => React .element ,
65
74
headerLeftContainerStyle ?: Style .t ,
66
- headerRight ?: headerRightProps => React .element ,
67
75
headerRightContainerStyle ?: Style .t ,
68
76
headerSearchBarOptions ?: headerSearchBarOptions ,
69
77
headerPressColor ?: Color .t ,
70
78
headerPressOpacity ?: float ,
71
- headerTintColor ?: Color .t ,
72
- headerBackground ?: headerBackgroundOptions => React .element ,
73
79
headerBackgroundContainerStyle ?: Style .t ,
74
- headerTransparent ?: bool ,
75
80
headerStyle ?: Style .t ,
76
- headerShadowVisible ?: bool ,
77
81
headerStatusBarHeight ?: Style .size ,
78
82
}
79
83
0 commit comments