Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
First approach: NavHost
NavHost(
navController = navController,
startDestination = LoginScreenSpec.route
) {
ScreenSpec.allScreens.forEach { screen ->
composable(
screen.route,
screen.arguments,
screen.deepLinks,
) {
screen.Content(navController, it)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment