Skip to content

Commit

Permalink
NOLO-375-Use-reverse-geocoding-api-to-get-user-city-position (#40)
Browse files Browse the repository at this point in the history
* Add and update dependencies

* Add env file

* Use env variables in common fetch

* Add reverse geocoding system

* Fix endTimer

* Prettified Code!

* Add env file to gitignore

* Remove unused API endpoints variables

* Replace deprecated method to save images in cameraroll

* Update .gitignore to include *.env files

* Update dependencies

---------

Co-authored-by: JohanCDev <[email protected]>
  • Loading branch information
JohanCDev and JohanCDev authored Jan 30, 2024
1 parent 6fe1c7d commit 24892bc
Show file tree
Hide file tree
Showing 12 changed files with 403 additions and 254 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GEOAPIFY_API_KEY=
DEV_API_URL=
PROD_API_URL=
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@ coverage/
# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
# testing
/coverage
/coverage

*.env
11 changes: 11 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,16 @@ module.exports = {
},
},
],
[
'module:react-native-dotenv',
{
envName: 'APP_ENV',
moduleName: '@env',
path: '.env',
safe: false,
allowUndefined: true,
verbose: false,
},
],
],
}
5 changes: 5 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@env' {
export const GEOAPIFY_API_KEY: string
export const DEV_API_URL: string
export const PROD_API_URL: string
}
Loading

0 comments on commit 24892bc

Please sign in to comment.