Check out example codes for "D/NetworkSecurityConfig: No Network Security Config specified, using platform default". It will help you in understanding the concepts better.

Code Example 1

<?xml version="1.0" encoding="utf-8"?>
  <network-security-config>
    <base-config cleartextTrafficPermitted="true" />
  </network-security-config>

Code Example 2

<uses-library android:name="org.apache.http.legacy" android:required="false"/>

Code Example 3

android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"

Learn ReactJs, React Native from akashmittal.com