mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-27 01:34:25 +08:00
Support containedModal mode in RNN stack (#241)
This commit is contained in:
committed by
GitHub
parent
7c351df14d
commit
953763f7d9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user