-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal StackView nested inside other StackNavigator is not presented modally #690
Comments
aimak
changed the title
Modal StackView nested inside other StackNavigator does not work
Modal StackView nested inside other StackNavigator is not presented modally
Mar 14, 2017
Same problem here with the latest commit in |
having this issue as well. |
+1 |
This can be fixed by putting your |
#707 (comment) - This is how I was able to accomplish loading screens as modals within a card stack navigator - basically nest a card stacknavigator within a modal stacknavigator. |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello everyone,
I'm struggling with a complicated nesting of navigators here and it seems something does not work as I would have expected.
I have this code :
So I have
ListScreen
as first tab of myTabNavigator
. I want the user to be able to push another component (DetailScreen
) and then tap on a button that will display aModalScreen
. Sadly, when I callthis.props.navigation.navigate('ModalScreen')
the screen is pushed rather than being presented modally.The interesting part is if I add a
mode: 'modal'
on theFirstTab
StackNavigator
, then every screen of the stack is presented modally.It also seems that if the
FirstTab
stack is a modal, then the nestedModalScreen
is modal no mater the mode I set.Am I doing anything wrong or is it a bug ?
I'm using
"react-navigation": "^1.0.0-beta.5",
The text was updated successfully, but these errors were encountered: