aipok
06/01/2021, 7:24 AMknthmn
06/01/2021, 7:35 AM@Composable fun BottomNavigation(navController: NavController) {
val currentDestination by navController.observeDestinationAsState()
BottomNavigation(currentDestination, navController::navigate)
}
@Composable fun BottomNavigation(destination: String, navigate: (String) -> Unit) { ... }
and you can use the second composable for previewsIan Lake
06/01/2021, 7:01 PM