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
expoinpackage.jsonand anapp.jsonorapp.config.ts- An
app/folder with_layout.tsxfiles (Expo Router) eas.jsonfor builds, andexpo-*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
app/_layout.tsx- The
app/tree, which is the navigation map app.config.ts, for plugins and permissions
How a request moves through the code
- The app boots and Expo Router reads the
app/tree. - Layouts render navigators; the matching screen file renders inside.
- Links and
router.pushnavigate by path, and deep links resolve the same way. - Device 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.