mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 21:05:29 +08:00
Support RNN wrapper's animationEnabled option (#243)
This commit is contained in:
committed by
GitHub
parent
6f9c504627
commit
84d684b52d
@@ -165,11 +165,17 @@ class StackView extends React.Component {
|
|||||||
transparentCard || options.cardTransparent ? 'transparentModal' : mode;
|
transparentCard || options.cardTransparent ? 'transparentModal' : mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let stackAnimation = undefined;
|
||||||
|
if (options.animationEnabled === false) {
|
||||||
|
stackAnimation = 'none';
|
||||||
|
}
|
||||||
|
|
||||||
const { screenProps } = this.props;
|
const { screenProps } = this.props;
|
||||||
return (
|
return (
|
||||||
<Screen
|
<Screen
|
||||||
key={`screen_${route.key}`}
|
key={`screen_${route.key}`}
|
||||||
style={options.cardStyle}
|
style={options.cardStyle}
|
||||||
|
stackAnimation={stackAnimation}
|
||||||
stackPresentation={stackPresentation}
|
stackPresentation={stackPresentation}
|
||||||
onDismissed={() => this._removeScene(route)}>
|
onDismissed={() => this._removeScene(route)}>
|
||||||
{this._renderHeaderConfig(index, route, descriptor)}
|
{this._renderHeaderConfig(index, route, descriptor)}
|
||||||
|
|||||||
Reference in New Issue
Block a user