Skip to content

How to understand a Expo codebase

Expo is a framework and toolchain for React Native. Modern Expo apps use Expo Router, where files under `app/` define screens much like web routing, and configuration in `app.config.ts` generates the native projects for you.

How to tell it's Expo

  • expo in package.json and an app.json or app.config.ts
  • An app/ folder with _layout.tsx files (Expo Router)
  • eas.json for builds, and expo-* packages

Where things usually live

app.config.ts / app.json
App name, icons, permissions, plugins, environment-specific settings.
app/_layout.tsx
Root layout: providers and the root navigator.
app/(tabs)/
Route groups for tab navigators; parentheses don't affect the URL.
app/[id].tsx
Dynamic routes, also used for deep links.
components/ and hooks/
Shared UI and logic.
eas.json
Build profiles for development, preview and production.

Conventions, not rules. Real projects rename and move things, so confirm against the repository.

Where to start reading

  1. app/_layout.tsx
  2. The app/ tree, which is the navigation map
  3. app.config.ts, for plugins and permissions

How a request moves through the code

  1. 1The app boots and Expo Router reads the app/ tree.
  2. 2Layouts render navigators; the matching screen file renders inside.
  3. 3Links and router.push navigate by path, and deep links resolve the same way.
  4. 4Device features come from expo-* modules; config plugins set native permissions at build time.

Questions to ask about the repository

  • Map every screen from the app/ folder.
  • Which config plugins change native settings?
  • How do the EAS build profiles differ?

What trips people up

  • Native folders are usually generated, so edits there may be overwritten by prebuild.
  • Some libraries need a development build and won't run in Expo Go.