Use Local Machine IP like - 192.168.0.105
as well as in the 'android\app\src\main\res\xml' directory create a file - `react_native_config.xml`
And paste this -
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">localhost</domain>
<domain includeSubdomains="true">10.0.2.2</domain>
<domain includeSubdomains="false">192.168.0.105</domain>
</domain-config>
</network-security-config>
As well as in android\app\src\main\AndroidManifest.xml add this
<application
...
android:usesCleartextTraffic="true">
...
</application>