# Navigation Patterns

> Stack, tab and drawer navigation, modals, passing parameters, and handling the back button correctly. Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/mobile/navigation
Last updated: 2026-11-28

Stack, tab and drawer navigation, modals, passing parameters, and handling the back button correctly.

Beginner · about 6 hours · difficulty 3/5

Learn first: [Components, Props & Styling](https://www.internhack.in/roadmaps/tracks/mobile/components-and-styling)

Navigation is how users move through your app. Mobile navigation is a **stack** of screens: pushing a screen adds it on top, going back pops it off. Tabs and drawers hold several stacks side by side.

### Patterns

- **Stack**: list to detail to edit. Supports the iOS swipe-back gesture and the Android back button.
- **Tabs**: a bottom bar for 3 to 5 top-level sections, each with its own stack and preserved scroll position.
- **Drawer**: a side menu for many secondary destinations; less common in modern apps.
- **Modals and bottom sheets**: focused tasks that slide over the current context.

### Tools per stack

- React Native: **Expo Router** (file-based, built on React Navigation) or React Navigation directly.
- Flutter: `Navigator` 2.0 via **go_router**.
- Android: Navigation Compose. iOS: `NavigationStack` with typed paths.

### Doing it well

- Pass **IDs** as parameters, not whole objects; the destination loads its own data.
- Type your routes and params.
- Separate auth and main flows so logged-out users cannot navigate into protected screens, and so pressing back after login does not return to the login screen.

**Good enough to move on:** you built an app with bottom tabs, a nested stack in one tab, a modal, and an auth gate.

## Key concepts

- **Stack navigation**
- **Tab navigation**
- **Modals and bottom sheets**
- **Passing route parameters**
- **Auth flows and protected routes**
- **Back button and gesture handling**
- **Drawer navigation**

## Mini project

Build a notes app shell: login screen, then tabs (Notes, Settings), a note detail screen pushed from the list, and a new-note modal.

## Check yourself

After a successful login, the user presses back and lands on the login screen again. What is wrong with your navigation structure?

## Free resources

- [Expo Router introduction](https://docs.expo.dev/router/introduction/) (Expo)
- [React Navigation](https://reactnavigation.org/docs/getting-started) (React Navigation)
- [Navigation with Compose](https://developer.android.com/develop/ui/compose/navigation) (Android Developers)

Previous: [Lists, Scrolling & User Input](https://www.internhack.in/roadmaps/tracks/mobile/lists-and-forms) · Next: [Deep Links, Universal Links & App Links](https://www.internhack.in/roadmaps/tracks/mobile/deep-linking)

## More in Navigation & State Management

- [Navigation Patterns](https://www.internhack.in/roadmaps/tracks/mobile/navigation)
- [Deep Links, Universal Links & App Links](https://www.internhack.in/roadmaps/tracks/mobile/deep-linking)
- [State Fundamentals](https://www.internhack.in/roadmaps/tracks/mobile/state-fundamentals)
- [App-wide State Tools](https://www.internhack.in/roadmaps/tracks/mobile/state-libraries)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Mobile App Developer Roadmap](https://www.internhack.in/roadmaps/tracks/mobile)
