Back to feed
Dev.to
Dev.to
7/15/2026
Multi-Environment Setup for Expo React Native: Dev, Staging, and Prod Side-by-Side

Multi-Environment Setup for Expo React Native: Dev, Staging, and Prod Side-by-Side

Original: Stop Uninstalling Your App to Test Staging and Production: A Proper Multi-Environment Setup for Mobile Development

Short summary

A practical guide to configuring separate development, preview, and production environments in an Expo React Native project using a single APP_VARIANT environment variable. Each environment gets its own app name, bundle ID, API URL, Firebase config, and OTA update channel driven by dynamic app.config.ts and EAS build profiles. The result is one-command builds that let QA install staging and production apps side-by-side without manual URL swapping.

  • Single APP_VARIANT env variable drives app name, bundle ID, API URL, and Firebase config per environment
  • EAS build profiles map to dev/preview/production with separate OTA channels
  • Staging and production builds can coexist on the same device without uninstalling

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more