react-native-community / cli

React Native command line tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API not working in React native android but working in ios.

azamdev00 opened this issue · comments

Environment

Run yarn start
yarn android

Description

I m using react native latest version 0.73.6. My API is running on a sub-domain. If i run my API on ios simulator the is working fine but when i try to run in android then it is giving me network error. I can run my deployed API with IP address of VPS but not with sub-domain.

Reproducible Demo

Screenshot 2024-03-17 at 2 30 00 PM Screenshot 2024-03-17 at 2 30 32 PM Screenshot 2024-03-17 at 2 33 39 PM

Error
Screenshot 2024-03-17 at 2 31 17 PM

hey! this is not issues related to CLI - please try searching for an answer on StackOverflow or inside React Native repo.