Replies: 3 comments 4 replies
|
Hi you need to add --clear
I just did not manage to get it working with |
2 replies
|
Hi @fristyr have you tried using |
0 replies
|
@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 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions