Search code examples
androidiosreact-nativedevelopment-environmentproduction-environment

How to set Staging, Development and Live Environment in React Native


I want to setup a Staging, Live, and Development environment in React Native for both iOS and Android Platform. How should I do that? What should be the structure of the Application?


Solution

  • You definitely could use react-native-config library and separate .env files for each environment. Here is a tutorial: https://dev.to/calintamas/how-to-manage-staging-and-production-environments-in-a-react-native-app-4naa.