A sample Android app exploring Jetpack Navigation 3,
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.
- Kotlin
- Jetpack Compose
- Navigation 3
1.0.0 - kotlinx-serialization
- Type-safe routing with
@Serializable+NavKey - Basic screen transitions via
NavDisplay - Deep link handling
- Back stack manipulation
git clone https://github.com/komodgn/compose-nav3-sample.gitOpen in Android Studio and run.
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.
