Replies: 3 comments 4 replies
-
Hi you need to add --clear
I just did not manage to get it working with |
Beta Was this translation helpful? Give feedback.
-
Hi @fristyr have you tried using |
Beta Was this translation helpful? Give feedback.
-
@goatandsheep .package.json {
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"start:production": "SET NODE_ENV=production & expo start",
"start:development": "SET NODE_ENV=development & expo start",
"start:test": "SET NODE_ENV=test & expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
...
"react-native-dotenv": "^3.3.1",
},
"devDependencies": {
...
"@types/react-native-dotenv": "^0.2.0",
},
"private": true
} babel.config.js module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
'react-native-reanimated/plugin',
[
'module-resolver',
{
alias: {
app: './app',
},
},
],
[
'module:react-native-dotenv',
{
moduleName: '@env',
path: './app/config/env',
safe: false,
allowUndefined: true,
},
],
],
};
}; inside of the app folder I have next |
Beta Was this translation helpful? Give feedback.
-
Hi
I have 3 env files in my project
.env.production
.env.development
.env.test
I was trying to follow the guide from page
but after I try a script
No errors, expo starts, but then I still see the development env variables
Beta Was this translation helpful? Give feedback.
All reactions