How to make Jetpack Compose navigation easier and testable

Patryk Kosieradzki
ProAndroidDev
Published in
4 min readAug 8, 2021

--

Photo by Joseph Barrientos on Unsplash

Navigating in Compose is easy

Navigating in Jetpack Compose is pretty simple as you may already know. You just declare a NavHost with all your destinations and a NavHostController that will remember the navigation state and will let you controll your navigation.

For example:

--

--

Senior Android Engineer @ Moss, Podcaster @ AndroidTalks, based in Warsaw, Poland