createNavigationModule
DSL entry point for creating a NavigationModule.
Equivalent to NavigationModule.create(block). Use this function at the call-site where you assemble your store:
val store = createStore {
module(
createNavigationModule {
graph("root") {
entry(HomeScreen)
screen(HomeScreen)
screen(SettingsScreen)
}
}
)
}Content copied to clipboard
Return
A fully configured NavigationModule ready to be registered with the store.
Parameters
block
Configuration lambda applied to a GraphBasedBuilder.