Publishing a web app with the API in the source code would be an horrible idea because people could see my API key and drain my account, but if its a mobile app with React Native with Expo users should not be able to see it. But I'm not so sure about that, I guess there are ways to get it. So how could I prevent that?
What are the best practice for this? Maybe I could use SecureStore from Expo, but I'm not sure if that solves the problem. Currently it's stored in the source code of some components like this:
const API_KEY = mysecretkey
I'm using AWS Rekognition and S3.
Thanks for your help.