react-nativeios-simulator

React Native IOS Simulator - Network Error


So I have been developing my diploma project and for context I'm relatively new to react native app development and I'm trying to use supabase for database and authentication. The problem I'm facing is that for some reason when I run the application with npx expo run:ios and open it inside the simulator I always get network errors. I tried solving it with resetting simulators and first time I run the app everything is fine. I can login or Register and it will take me to the application however when I close the app inside the simulator and reopen, I start getting the same network error again ERROR Register failed: {"message": "Network request failed", "name": "AuthRetryableFetchError", "stack": "AuthRetryableFetchError: Network request failed and ERROR [TypeError: Network request failed].

I tried uninstalling all of the simulators and installing them again but also didn't work. If you guys have any suggestions that would be great. Thanks in advance.


Solution

  • I have solved the issue by just simply lowering the version of the iPhone Simulator from 18.4 to 18.3. I think the issue was related to the expo version that I was using which is 52.