From de112565d3890276c59d7902bcad2cdfd4d7e248 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Fri, 22 Jun 2018 13:18:26 -0700 Subject: [PATCH] Fix name of prop, should be lastTransitionProps instead of prevTransitionProps in StackViewLayout - Fixes #4542 --- src/views/StackView/StackViewLayout.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/StackView/StackViewLayout.js b/src/views/StackView/StackViewLayout.js index fdbe3ec3..d018faaf 100644 --- a/src/views/StackView/StackViewLayout.js +++ b/src/views/StackView/StackViewLayout.js @@ -119,7 +119,7 @@ class StackViewLayout extends React.Component { const { mode, transitionProps, - prevTransitionProps, + lastTransitionProps, ...passProps } = this.props; @@ -401,6 +401,7 @@ class StackViewLayout extends React.Component { render() { let floatingHeader = null; const headerMode = this._getHeaderMode(); + if (headerMode === 'float') { const { scene } = this.props.transitionProps; floatingHeader = ( @@ -498,13 +499,14 @@ class StackViewLayout extends React.Component { return TransitionConfigs.getTransitionConfig( this.props.transitionConfig, this.props.transitionProps, - this.props.prevTransitionProps, + this.props.lastTransitionProps, isModal ); }; _renderCard = scene => { const { screenInterpolator } = this._getTransitionConfig(); + const style = screenInterpolator && screenInterpolator({ ...this.props.transitionProps, scene });