Skip to content

Repository files navigation

🛤️ Compose Navigation 3 Sample

A sample Android app exploring Jetpack Navigation 3,

built to understand its routing model and evaluate adoption for production use.
nav3

Table of Contents

Overview

Navigation 3 is a Compose-first navigation library that replaces string-based routes with type-safe @Serializable data classes. This sample covers its core concepts — routing, back stack management, and deep links — as a reference before migrating a production app.

Tech Stack

  • Kotlin
  • Jetpack Compose
  • Navigation 3 1.0.0
  • kotlinx-serialization

Features

  • Type-safe routing with @Serializable + NavKey
  • Basic screen transitions via NavDisplay
  • Deep link handling
  • Back stack manipulation

Getting Started

git clone https://github.com/komodgn/compose-nav3-sample.git

Open in Android Studio and run.

Version Note

Navigation 3 requires a compatible Compose BOM. This project uses:

Library Version
Navigation 3 1.0.0
Compose BOM 2025.09.01 (compose-bom-alpha)
Activity Compose 1.9.3
Lifecycle 2.10.0

Using a newer Compose BOM (e.g. 2026.xx.xx) will cause runtime crashes due to navigationevent version conflicts.

About

🛤️ Android Compose + Navigation 3 sample | type-safe routing with `@Serializable` routes

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages