mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-26 09:14:22 +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;
|
||||
}
|
||||
|
||||
let stackAnimation = undefined;
|
||||
if (options.animationEnabled === false) {
|
||||
stackAnimation = 'none';
|
||||
}
|
||||
|
||||
const { screenProps } = this.props;
|
||||
return (
|
||||
<Screen
|
||||
key={`screen_${route.key}`}
|
||||
style={options.cardStyle}
|
||||
stackAnimation={stackAnimation}
|
||||
stackPresentation={stackPresentation}
|
||||
onDismissed={() => this._removeScene(route)}>
|
||||
{this._renderHeaderConfig(index, route, descriptor)}
|
||||
|
||||
Reference in New Issue
Block a user