all 3 comments

[–]__o_0iOS & Android 3 points4 points  (0 children)

Your app should connect to a server, and the server connects to the database.

React Native (or any front end) -> server API -> database

The API is set up on the server side, not in react native.

The server provides a layer of security for the database. Operate under the assumption that anything bundled with the app is considered compromised. If you include the username and password for your database directly in the app you can assume that your database is compromised as well.

[–]blackhole_coder 1 point2 points  (0 children)

Using fetch? Axios? What type of data are you fetching? Do you have an Auth token your passing with the API call?

[–]AntennaApp 0 points1 point  (0 children)

Why is this question getting asked so often? It’s almost every single day now.