@@ -55,25 +55,29 @@ module Header = {
5555 placeholder ?: string ,
5656 }
5757
58- type headerOptions = {
58+ type headerCommonOptions = {
5959 headerTitle ?: headerTitle ,
6060 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 ,
6271 headerTitleStyle ?: Style .t ,
72+ headerTitleAllowFontScaling ?: bool ,
6373 headerTitleContainerStyle ?: Style .t ,
64- headerLeft ?: headerLeftProps => React .element ,
6574 headerLeftContainerStyle ?: Style .t ,
66- headerRight ?: headerRightProps => React .element ,
6775 headerRightContainerStyle ?: Style .t ,
6876 headerSearchBarOptions ?: headerSearchBarOptions ,
6977 headerPressColor ?: Color .t ,
7078 headerPressOpacity ?: float ,
71- headerTintColor ?: Color .t ,
72- headerBackground ?: headerBackgroundOptions => React .element ,
7379 headerBackgroundContainerStyle ?: Style .t ,
74- headerTransparent ?: bool ,
7580 headerStyle ?: Style .t ,
76- headerShadowVisible ?: bool ,
7781 headerStatusBarHeight ?: Style .size ,
7882 }
7983
0 commit comments