react-native-dotenv
react-native-dotenv copied to clipboard
Support for multiple environments
Closes #19 Reviews and criticisms are gladly welcome. Hope you have the time to check.
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)
Ah darn. Let's file a ticket then, so that we could see what they think about it.
Any news?
any news
There's a new repo and package babel-plugin-dotenv-import. Please reopen in the new repo