Skip to content

Commit 3874c18

Browse files
committed
feat: added react-native-dotenv configurations to app
1 parent 032afdf commit 3874c18

File tree

6 files changed

+242
-77
lines changed

6 files changed

+242
-77
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ npm-debug.*
99
*.mobileprovision
1010
*.orig.*
1111
web-build/
12+
.env
1213

1314
# macOS
1415
.DS_Store

babel.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,18 @@ module.exports = function (api) {
22
api.cache(true);
33
return {
44
presets: ['babel-preset-expo'],
5+
plugins: [
6+
[
7+
'module:react-native-dotenv',
8+
{
9+
moduleName: '@env',
10+
path: '.env',
11+
allowlist: ['REDIRECT_URI', 'SCOPE', 'CLIENT_ID'],
12+
safe: true,
13+
allowUndefined: false,
14+
verbose: false,
15+
},
16+
],
17+
],
518
};
619
};

package-lock.json

Lines changed: 212 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)