How to use secrets in local env files (react native)

react-native
#1

Hi. I want to use a secret variable in bitrise workflow. However currently I have 3 different env files (stage, preprod, prod) and they are committed to git so bitrise was reading from these files. I am using react-native config. Should I completely remove the env files from git and use bitrise env vars? If so, how can I have 3 different cases depending on the environment. Or can I combine strings with bitrise variables? How can I make this work?

P.S. In our case bitrise.yml is stored on bitrise not app repo.

Thanks.

0 Likes