See how to setup Android bottom navigation with Jetpack Navigation, and also see an alternative means of implementing bottom navigation that allows separate back stacks for each tab, the Bottom Navigator library from Pandora.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5555080-bottom-navigation