react-native-dotenv icon indicating copy to clipboard operation
react-native-dotenv copied to clipboard

Support for multiple environments

Open uLan08 opened this issue 8 years ago • 5 comments
trafficstars

Closes #19 Reviews and criticisms are gladly welcome. Hope you have the time to check.

uLan08 avatar Oct 10 '17 12:10 uLan08

Hi, thanks for working on this.

The bad news is that RN packager will try to overwrite process.env.BABEL_ENV. (see https://github.com/facebook/metro-bundler/blob/d1d59d81e5926acdc745dac40ba9423f87f1f789/packages/metro-bundler/src/transformer.js#L133)

I've always want to file a ticket for RN to claim the need that the packager should allow variant of default dev & product env. (In most use case, staging might be a variant of production env)

zetachang avatar Oct 10 '17 14:10 zetachang

Ah darn. Let's file a ticket then, so that we could see what they think about it.

uLan08 avatar Oct 11 '17 04:10 uLan08

Any news?

antonsivogrivov avatar Oct 27 '17 10:10 antonsivogrivov

any news

brandonxiang avatar Jan 18 '20 02:01 brandonxiang

There's a new repo and package babel-plugin-dotenv-import. Please reopen in the new repo

goatandsheep avatar May 21 '20 19:05 goatandsheep