Skip to content
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

Improve the base navigation with a "MainNavGraph" #552

Closed
luongvo opened this issue Oct 31, 2023 · 0 comments · Fixed by #529
Closed

Improve the base navigation with a "MainNavGraph" #552

luongvo opened this issue Oct 31, 2023 · 0 comments · Fixed by #529

Comments

@luongvo
Copy link
Member

luongvo commented Oct 31, 2023

Why

The existing app navigation was not designed to have the nested nav graph as default. So, it requires more effort to implement a new navigation for the authentication flow, such as Splash, Login, or Sign Up. Normally, we should have 2 nested graphs: onboarding & main; then, we can easily navigate to the main graph after authenticating.

Solution

Define a "MainNavGraph" (and also "OnboardingNavGraph" later) nested graph between AppNavGraph (AppNavigation) and the app screens as default to improve the app navigation logic. The final app navigation structure will look like this:

AppNavGraph
├── OnboardingNavGraph
│   └── LoginScreen
└── MainNavGraph
    └── HomeScreen

Who Benefits?

Developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants