react-native-env-babel

env for react-native

Usage no npm install needed!

<script type="module">
  import reactNativeEnvBabel from 'https://cdn.skypack.dev/react-native-env-babel';
</script>

README

Include babel-plugin-dotenv as shown below to your react-native .babelrc file

{
  "plugins": [
    ["babel-plugin-dotenv", {
      "replacedModuleName": "react-native-env-babel"
    }]
  ]
}