The Expo Workflow: Dev Builds, Config & Environments

Configure apps with app.config, use development builds and config plugins, manage environment variables, and understand prebuild.

Intermediate · about 6 hours · difficulty 3/5

Learn first: Hooks, Effects & Platform-specific Code

Expo Go is great for learning, but real apps quickly need native libraries that Expo Go does not contain. The professional workflow is development builds plus Continuous Native Generation.

Key pieces

  • app.json / app.config.ts: name, bundle identifier, icons, splash screen, permissions text, plugins. app.config.ts can read environment variables to produce dev, staging and production variants.
  • Development builds: your own version of Expo Go with your native dependencies included. Build once with EAS or locally, then iterate on JavaScript with fast refresh.
  • Prebuild: npx expo prebuild generates the android/ and ios/ folders from your config. Treat them as build output rather than hand-edited source when possible.
  • Config plugins modify native projects during prebuild (for example adding a manifest entry), so native changes stay reproducible.
  • Environment variables: EXPO_PUBLIC_ variables are embedded in the bundle and therefore visible to anyone; never put secrets there.

Pitfalls

Hand-editing generated native folders and then running prebuild again wipes your changes. Encode native changes in config plugins instead.

Good enough to move on: you have a development build with a native library, and separate staging and production app variants that can be installed side by side.

Key concepts

  • app.json and app.config.ts
  • Development builds
  • Continuous Native Generation and prebuild
  • Config plugins
  • Environment variables and app variants
  • Local builds vs EAS Build

Mini project

Configure your app with dev and production variants (different names, icons and API URLs), and install both on one phone.

Check yourself

Why is an API secret placed in an EXPO_PUBLIC_ variable not actually secret?

Free resources