setupWithNavController

fun BottomNavigationView.setupWithNavController(navGraphIds: List<Int>, fragmentManager: FragmentManager, containerId: Int, intent: Intent): LiveData<NavController>

Manages the various graphs needed for a BottomNavigationView.

This sample is a workaround until the Navigation Component supports multiple back stacks.