Use containedTransparentModal in RNN wrapper when requested. (#249)

Previously when transparent card was requested we'd default to transparentModal stack presentation mode. However if user requests contained modal mode we should be using containedTransparentModal instead. This change fixes that behavior.
This commit is contained in:
Krzysztof Magiera
2019-12-12 23:01:36 +01:00
committed by GitHub
parent e00a08a3dc
commit a3335b1384

View File

@@ -159,8 +159,13 @@ class StackView extends React.Component {
let stackPresentation = 'push';
if (mode === 'modal' || mode === 'containedModal') {
stackPresentation =
transparentCard || options.cardTransparent ? 'transparentModal' : mode;
stackPresentation = mode;
if (transparentCard || options.cardTransparent) {
stackPresentation =
mode === 'containedModal'
? 'containedTransparentModal'
: 'transparentModal';
}
}
let stackAnimation;