Guia Navigation
Github
  • Overview
  • Setup
  • Using Guia
    • 📔Express Lore
      • Quick Start
    • 📖The Lore
      • Navigation Key
      • Navigation Node
        • Screen
        • Bottom Sheet
        • Dialog
      • Navigator
        • Navigation Operations
        • Navigator Instance
        • Back Handling
      • Navigator Config
        • Dynamic Navigation Node
        • Transitions
      • Containers
      • NavHost
        • Back Handling
      • Multi module navigation
        • NavHost Multi module
      • Deep Linking / Global Navigation
      • Results
      • Lifecycle, ViewModel, Saved State
      • UI Tests
  • 🤖Advanced
    • Custom LifecycleManager
Powered by GitBook
On this page
  1. Using Guia
  2. The Lore

Navigator Config

PreviousBack HandlingNextDynamic Navigation Node

Last updated 2 years ago

Going back to our rememberNavigator call, we can also provide a NavigatorConfig. This is where we link a NavigationKey to a NavigationNode, define transition animations, etc.

For example:

val myNavigator = rememberNavigator {
    screen<HomeKey> { Text("This is a screen!") }
    bottomSheet<ProfileKey>(bottomSheetOptions = ..) { key -> Text("This is a profile for: ${key.profileId}"}
    dialog<MyDialogKey>(dialogOptions =..) { Text("This is a dialog!") }
}

Note that a NavigationKey that uses don't need to define a representation inside NavigatorConfig

📖
WithNode