# The Expo Workflow: Dev Builds, Config & Environments

> Configure apps with app.config, use development builds and config plugins, manage environment variables, and understand prebuild. Free notes, key concepts,...

Canonical: https://www.internhack.in/roadmaps/tracks/mobile/expo-workflow
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/mobile/rn-hooks-and-platform)

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

- [Expo: Development builds](https://docs.expo.dev/develop/development-builds/introduction/) (Expo)
- [Expo: Continuous Native Generation](https://docs.expo.dev/workflow/continuous-native-generation/) (Expo)
- [Expo: Config plugins](https://docs.expo.dev/config-plugins/introduction/) (Expo)

Previous: [Hooks, Effects & Platform-specific Code](https://www.internhack.in/roadmaps/tracks/mobile/rn-hooks-and-platform) · Next: [React Native Internals & the New Architecture](https://www.internhack.in/roadmaps/tracks/mobile/rn-architecture)

## More in React Native in Depth

- [Hooks, Effects & Platform-specific Code](https://www.internhack.in/roadmaps/tracks/mobile/rn-hooks-and-platform)
- [The Expo Workflow: Dev Builds, Config & Environments](https://www.internhack.in/roadmaps/tracks/mobile/expo-workflow)
- [React Native Internals & the New Architecture](https://www.internhack.in/roadmaps/tracks/mobile/rn-architecture)
- [Writing Native Modules with Expo Modules](https://www.internhack.in/roadmaps/tracks/mobile/rn-native-modules)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Mobile App Developer Roadmap](https://www.internhack.in/roadmaps/tracks/mobile)
