Support containedModal mode in RNN stack (#241)

This commit is contained in:
Krzysztof Magiera
2019-11-29 13:12:39 +01:00
committed by GitHub
parent 7c351df14d
commit 953763f7d9

View File

@@ -160,8 +160,9 @@ class StackView extends React.Component {
const SceneComponent = getComponent();
let stackPresentation = 'push';
if (mode === 'modal') {
stackPresentation = transparentCard ? 'transparentModal' : 'modal';
if (mode === 'modal' || mode === 'containedModal') {
stackPresentation =
transparentCard || options.cardTransparent ? 'transparentModal' : mode;
}
const { screenProps } = this.props;