Do I still use local host once I deploy my react native app?

I am currently building the backend for my react-native app, and I was wondering:

I have the app.listen(“insert port”). This works fine, but when I want to deploy to lets say, the app store, do I need to change it? I mean, does my app have to keep loading on my local host? Or do I use some other port.

Thank you.