How to Run Staging and Production Mobile Builds Side by Side Using Expo

React Native developers often face the inconvenience of uninstalling production apps just to test staging builds, since both share the same bundle ID by default. A multi-environment setup using Expo and EAS Build can eliminate this problem by assigning each environment its own app name, bundle ID, API URLs, and Firebase config. The approach relies on a single environment variable, APP_VARIANT, defined in eas.json build profiles for development, preview, and production. Dynamic configuration via app.config.ts reads this variable to automatically wire the correct settings for each build. The result allows developers and QA teams to install and run staging and production builds simultaneously on the same device without any manual value-swapping.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in