hello guys, what is the best way to implement a ne...
# compose
b
hello guys, what is the best way to implement a nested navigation graph with Bottom navigation and avoiding using a nested NavHost? I can’t find a better way to do it besides the following:
Copy code
@Composable
fun RootNavigation(navController: NavHostController) {
    NavHost(navController = navController, route = "root", startDestination = "home") {
        authNavraph(navController = navController)
        autherGraph(navController = navController)
        composable(route = "home") {
            Scaffold {innerPadding ->
                val bottomNavHostController = rememberNavController()
                NavHost(modifier = Modifier.padding(innerPadding), navController = bottomNavHostController, startDestination = "Home_1") {}
            }
        }
    }
}