React Navigation: Case for a navigator inside another one?
up vote
0
down vote
favorite
I know that here: https://reactnavigation.org/docs/en/common-mistakes.html#explicitly-rendering-more-than-one-navigator it is mentioned that a navigator should not render another navigator explicitly.
However, I am actually facing a problem and I can find no other way around it:
I have a tablet application which uses Authentication (so I have a Switch navigator there).
When authentication is finished, the main screen is split into two parts:
- the left part has its own navigation (Stack navigation)
- the right part also has a different navigation (also stack)
Could that be done without having to render explicitly two navigators inside a main screen?
react-native react-navigation
add a comment |
up vote
0
down vote
favorite
I know that here: https://reactnavigation.org/docs/en/common-mistakes.html#explicitly-rendering-more-than-one-navigator it is mentioned that a navigator should not render another navigator explicitly.
However, I am actually facing a problem and I can find no other way around it:
I have a tablet application which uses Authentication (so I have a Switch navigator there).
When authentication is finished, the main screen is split into two parts:
- the left part has its own navigation (Stack navigation)
- the right part also has a different navigation (also stack)
Could that be done without having to render explicitly two navigators inside a main screen?
react-native react-navigation
I'd render the sign in screen as a full-screen modal on top of the two-panel layout
– Daniel Rothig
Nov 7 at 20:40
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I know that here: https://reactnavigation.org/docs/en/common-mistakes.html#explicitly-rendering-more-than-one-navigator it is mentioned that a navigator should not render another navigator explicitly.
However, I am actually facing a problem and I can find no other way around it:
I have a tablet application which uses Authentication (so I have a Switch navigator there).
When authentication is finished, the main screen is split into two parts:
- the left part has its own navigation (Stack navigation)
- the right part also has a different navigation (also stack)
Could that be done without having to render explicitly two navigators inside a main screen?
react-native react-navigation
I know that here: https://reactnavigation.org/docs/en/common-mistakes.html#explicitly-rendering-more-than-one-navigator it is mentioned that a navigator should not render another navigator explicitly.
However, I am actually facing a problem and I can find no other way around it:
I have a tablet application which uses Authentication (so I have a Switch navigator there).
When authentication is finished, the main screen is split into two parts:
- the left part has its own navigation (Stack navigation)
- the right part also has a different navigation (also stack)
Could that be done without having to render explicitly two navigators inside a main screen?
react-native react-navigation
react-native react-navigation
asked Nov 7 at 20:30
csotiriou
2,71642636
2,71642636
I'd render the sign in screen as a full-screen modal on top of the two-panel layout
– Daniel Rothig
Nov 7 at 20:40
add a comment |
I'd render the sign in screen as a full-screen modal on top of the two-panel layout
– Daniel Rothig
Nov 7 at 20:40
I'd render the sign in screen as a full-screen modal on top of the two-panel layout
– Daniel Rothig
Nov 7 at 20:40
I'd render the sign in screen as a full-screen modal on top of the two-panel layout
– Daniel Rothig
Nov 7 at 20:40
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53197345%2freact-navigation-case-for-a-navigator-inside-another-one%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'd render the sign in screen as a full-screen modal on top of the two-panel layout
– Daniel Rothig
Nov 7 at 20:40