What problem does it solve?
This Skill addresses the challenge of modernizing Android app navigation from the legacy Navigation 2 API to the new Navigation 3 library, which is designed exclusively for Jetpack Compose and provides full back stack control and adaptive layout capabilities.
Core Features & Use Cases
- Migration Guidance: Step-by-step instructions to migrate existing Navigation 2 implementations to Navigation 3, including dependency updates, route changes, and state management transitions.
- Adaptive Layouts: Implement responsive UI patterns using Scenes such as dialogs, bottom sheets, list-detail, two-pane, and supporting pane layouts that automatically adjust to screen size changes.
- Advanced Navigation Patterns: Handle deep links, multiple back stacks, conditional navigation (e.g., authentication flows), and result passing between screens using both event-based and state-based approaches.
- Architecture Integration: Decouple navigation logic using modular patterns with Hilt or Koin for dependency injection, and properly integrate with ViewModels and View interoperability.
Quick Start
Use the navigation-3 skill to migrate your existing Navigation 2 app to Navigation 3 by following the migration guide and implementing the recommended entry provider and scene strategies for your app's navigation architecture.