Navigation with Expo Router
Set up Expo Router for file-based navigation with typed routes and deep linking.
What Is Expo Router?
Expo Router is a file-based routing library for React Native (built on React Navigation). Like Next.js App Router, the file structure defines your navigation routes.
Installation
Create a new Expo project with Expo Router pre-configured.
# Create new project:
npx create-expo-app@latest my-app --template tabs
# Or add to existing Expo project:
npx expo install expo-router react-native-safe-area-context react-native-screens