The problem
I'm developing an app which uses MongoDB realm and Redux. When only redux is in the project, no problem. But then after debuggin it with realm installed errors started happening. Realm is using port=8083
for its XML requests, while React Native is running by default in port=8081
. So, when realm does its first XML request to initialize the realm app react native crashes.
The troubleshooting
By looking at the react-native-debugger documentation its possible to change de debugger port. Nice! And then i searched for a way to do the same in react-native. As weird as it sounds, apparently react-native's android port is hardcoded by the react-native init
, meaning that only the default 8081
port works. Actually, only the metro server and ios port can be changed. I requested support from MongoDB, about changing their default port to 8081
. But still waiting for an answer.
This is the app repository Any suggestion?
Thanks in advance!