Support RNN wrapper's animationEnabled option (#243)

This commit is contained in:
Krzysztof Magiera
2019-12-02 10:45:40 +01:00
committed by GitHub
parent 6f9c504627
commit 84d684b52d

View File

@@ -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)}