@@ -126,6 +126,7 @@ function createTabBarOptions({
126126}
127127function createNavigationOptions ( params ) {
128128 const {
129+ cardStyle,
129130 back,
130131 backButtonImage,
131132 backButtonTextStyle,
@@ -187,12 +188,13 @@ function createNavigationOptions(params) {
187188 } ;
188189 const res = {
189190 ...props ,
191+ cardStyle : navigationParams . cardStyle || cardStyle ,
190192 headerBackImage : navigationParams . backButtonImage || backButtonImage ,
191193 headerBackTitle : getValue ( navigationParams . backTitle || backTitle , state ) ,
192194 headerBackTitleEnabled : navigationParams . backTitleEnabled || backTitleEnabled ,
193195 headerLayoutPreset : navigationParams . headerLayoutPreset || headerLayoutPreset ,
194- headerLeft : getValue ( navigationParams . left || left || leftButton || params . renderLeftButton , state ) ,
195- headerRight : getValue ( navigationParams . right || right || rightButton || params . renderRightButton , state ) ,
196+ headerLeft : ( ) => getValue ( navigationParams . left || left || leftButton || params . renderLeftButton , state ) ,
197+ headerRight : ( ) => getValue ( navigationParams . right || right || rightButton || params . renderRightButton , state ) ,
196198 headerStyle : getValue ( navigationParams . headerStyle || headerStyle || navigationBarStyle , state ) ,
197199 headerTintColor : navBarButtonColor || props . tintColor || navigationParams . tintColor || navigationParams . headerTintColor ,
198200 headerTitle : getValue ( navigationParams . renderTitle || renderTitle || params . renderTitle , state ) ,
@@ -265,7 +267,7 @@ function createNavigationOptions(params) {
265267 || rightButtonTextStyle
266268 || ( ( drawerImage || drawerIcon ) && ! hideDrawerButton && drawerPosition === 'right' )
267269 ) {
268- res . headerRight = getValue ( navigationParams . right || navigationParams . rightButton || params . renderRightButton , { ...navigationParams , ...screenProps } ) || (
270+ res . headerRight = ( ) => getValue ( navigationParams . right || navigationParams . rightButton || params . renderRightButton , { ...navigationParams , ...screenProps } ) || (
269271 < RightNavBarButton navigation = { navigation } { ...params } { ...navigationParams } { ...componentData } />
270272 ) ;
271273 }
@@ -288,7 +290,7 @@ function createNavigationOptions(params) {
288290 || ( ( drawerImage || drawerIcon ) && ! hideDrawerButton && drawerPosition !== 'right' )
289291 ) {
290292 const leftButton = navigationParams . left || navigationParams . leftButton || params . renderLeftButton ;
291- res . headerLeft = getValue ( leftButton , { ...params , ...navigationParams , ...screenProps } )
293+ res . headerLeft = ( ) => getValue ( leftButton , { ...params , ...navigationParams , ...screenProps } )
292294 || ( ( ( onLeft && ( leftTitle || navigationParams . leftTitle || leftButtonImage || navigationParams . leftButtonImage ) ) || drawerImage || drawerIcon ) && (
293295 < LeftNavBarButton navigation = { navigation } { ...params } { ...navigationParams } { ...componentData } />
294296 ) )
@@ -298,7 +300,7 @@ function createNavigationOptions(params) {
298300 }
299301
300302 if ( back ) {
301- res . headerLeft = ( renderBackButton && renderBackButton ( state ) ) || < BackNavBarButton navigation = { navigation } { ...state } /> ;
303+ res . headerLeft = ( renderBackButton && renderBackButton ( state ) ) || ( ( ) => < BackNavBarButton navigation = { navigation } { ...state } /> ) ;
302304 }
303305
304306 if ( typeof navigationParams . left !== 'undefined' || typeof navigationParams . leftButton !== 'undefined' || typeof navigationParams . renderLeftButton !== 'undefined' ) {
0 commit comments