Navigation Patterns

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

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