Skip to content

Commit

Permalink
Add react-native-dotenv for environment variable management and updat…
Browse files Browse the repository at this point in the history
…e package versions
  • Loading branch information
himanshu8443 committed Oct 26, 2024
1 parent 2ce3d85 commit 32c2449
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module:react-native-dotenv',
{
moduleName: '@env',
path: '.env',
safe: false,
allowUndefined: true,
verbose: false,
},
],
[
'module-resolver',
{
Expand Down
17 changes: 15 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"react-native-aes-crypto": "^3.0.3",
"react-native-bootsplash": "^5.5.3",
"react-native-document-picker": "^9.3.0",
"react-native-dotenv": "^3.4.11",
"react-native-element-dropdown": "^2.12.0",
"react-native-fs": "^2.20.0",
"react-native-fullscreen-chz": "^4.0.13",
Expand Down
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@
resolved "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz"
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==

"@babel/runtime@*", "@babel/runtime@^7.0.0", "@babel/runtime@^7.20.0", "@babel/runtime@^7.8.4":
"@babel/runtime@*", "@babel/runtime@^7.0.0", "@babel/runtime@^7.20.0", "@babel/runtime@^7.20.6", "@babel/runtime@^7.8.4":
version "7.24.4"
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz"
integrity sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==
Expand Down Expand Up @@ -4561,7 +4561,7 @@ dotenv-expand@~11.0.6:
dependencies:
dotenv "^16.4.4"

dotenv@^16.4.4, dotenv@~16.4.5:
dotenv@^16.4.4, dotenv@^16.4.5, dotenv@~16.4.5:
version "16.4.5"
resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz"
integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==
Expand Down Expand Up @@ -8525,6 +8525,13 @@ react-native-document-picker@^9.3.0:
dependencies:
invariant "^2.2.4"

react-native-dotenv@^3.4.11:
version "3.4.11"
resolved "https://registry.npmjs.org/react-native-dotenv/-/react-native-dotenv-3.4.11.tgz"
integrity sha512-6vnIE+WHABSeHCaYP6l3O1BOEhWxKH6nHAdV7n/wKn/sciZ64zPPp2NUdEUf1m7g4uuzlLbjgr+6uDt89q2DOg==
dependencies:
dotenv "^16.4.5"

react-native-element-dropdown@^2.12.0:
version "2.12.0"
resolved "https://registry.npmjs.org/react-native-element-dropdown/-/react-native-element-dropdown-2.12.0.tgz"
Expand Down

0 comments on commit 32c2449

Please sign in to comment.