We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Welcome to the react-native-dotenv wiki!
module.exports = { "presets": ["module:metro-react-native-babel-preset"], "plugins": [ ["module:react-native-dotenv"] ] }
react-native run-ios --configuration Release
yarn start --reset-cache
expo r -c
Maybe a solution for updating package.json scripts:
"cc": "rimraf node_modules/.cache/babel-loader/*,", "android": "npm run cc && react-native run-android", "ios": "npm run cc && react-native run-ios",
types
*.d.ts
env.d.ts
declare module '@env' { export const API_BASE: string; }
You should add all of your .env variables inside this module.
typeRoots
tsconfig.json
{ ... "typeRoots": ["./src/types"], ... }
Version bump