Mindinventory / react-native-boilerplate

The Boilerplate contains all the basic packages, common components and, prebuilt code architecture. It will save developer's project setup time.
https://mindinventory.github.io/react-native-boilerplate/
MIT License
102 stars 16 forks source link

env URL not accepting when axios API call happening... #36

Closed commencementtech closed 1 week ago

commencementtech commented 2 weeks ago

image image

From where can I set this API_URL in the code, as it's not found anywhere in the system?

ankitpmi commented 1 week ago

Hi @commencementtech. Thank you for raising this issue and for your patience. I understand the confusion regarding where to set the API_URL for Axios calls. Here's how you'd be able to resolve this...

We have used react-native-config package for managing environment variables to the app.

You can set your environment variables (API_URL, ENV) in the .env file. Also, you can add more variables there.

Please take a look at our documentation for more details (here).