Skip to content

Commit

Permalink
Add react-native-dotenv to babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 12, 2019
1 parent c006647 commit dc88cf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
presets: ["babel-preset-expo", 'module:react-native-dotenv']
};
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
},
"devDependencies": {
"babel-preset-expo": "^7.0.0",
"jest-expo": "^35.0.0"
"jest-expo": "^35.0.0",
"react-native-dotenv": "^0.2.0",
"reactotron-react-native": "^4.0.2"
},
"private": true
}

0 comments on commit dc88cf3

Please sign in to comment.