Skip to content

Commit 953763f

Browse files
authored
Support containedModal mode in RNN stack (#241)
1 parent 7c351df commit 953763f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

createNativeStackNavigator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ class StackView extends React.Component {
160160
const SceneComponent = getComponent();
161161

162162
let stackPresentation = 'push';
163-
if (mode === 'modal') {
164-
stackPresentation = transparentCard ? 'transparentModal' : 'modal';
163+
if (mode === 'modal' || mode === 'containedModal') {
164+
stackPresentation =
165+
transparentCard || options.cardTransparent ? 'transparentModal' : mode;
165166
}
166167

167168
const { screenProps } = this.props;

0 commit comments

Comments
 (0)