app: the entrypoint of our app, contains the Activity
feature-home: contains the root screen (
feature-posts: contains screens related to the posts feature (
navigation: contains the screen providers used to navigate between modules, both
HomeScreento the screens on
DetailsScreen), we first need to provide them. The
navigationmodule should declare all shared screens in the app, use the
ScreenProviderinterface for that.
ScreenRegistryto register these providers. This should be done in your
screenModuleinto your feature module, that way your
Applicationclass won't be bloated by too many declarations.
rememberScreen()(inside a composable function) or
ScreenRegistry.get()to access your screens.