skip to Main Content

React native – react-native-config package Multiple Environments

I am developing app with "react-native" and "react-native-config package". I have installed "react-native-config" according to the manual. (https://www.npmjs.com/package/react-native-config?activeTab=readme) for android - edit "root/android/app/build.gradle" apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" project.ext.envConfigFiles = [ debug: ".env.dev", release: "env.prod", anothercustombuild: ".env", ] for ios…

VIEW QUESTION
Back To Top
Search