You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the above does not work ... maybe in expo api is a global? not sure but for my setup and it made WAY more sense it needed to be like below, honestly should be some clarification in the docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the instructions it shows that
api.cache(false) module.exports = { plugins: [ ['module:react-native-dotenv'] ] };
the above does not work ... maybe in expo api is a global? not sure but for my setup and it made WAY more sense it needed to be like below, honestly should be some clarification in the docs.
module.exports = function (api) { api.cache(false); return { presets: ['module:metro-react-native-babel-preset'], plugins: [ [ 'module:react-native-dotenv', { envName: 'APP_ENV', moduleName: '@env', path: '.env', blocklist: null, allowlist: null, blacklist: null, // DEPRECATED whitelist: null, // DEPRECATED safe: false, allowUndefined: true, verbose: false, }, ], ], }; };
Beta Was this translation helpful? Give feedback.
All reactions