React native CI-CD setup with App Center
Code Setup 1. React native config library Run npm i react-native-config command in terminal. 2. ENV file setup create .env file at the root level...add env variables.[ Do not push the .env file with the code ] 3. Android/build.gradle setup Move to the android folder and perform the following task cd android/app/build.gradle Add the below line to the top of the file apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" 4. Android/settings.gradle Add following line in android/settings.gradle include ':react-native-config project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') 5. Keystore file generation Generate .keystore key for signed building command = keytool -genkeypair -v -keystore file-name-key.keystore -alias file-name-alias -keyalg RSA -keysize 2048 -validity 10000 On running the above command user has to provide the following details ...