We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7472c35 commit 6496212Copy full SHA for 6496212
samples/react-native/android/app/src/main/AndroidManifest.xml
@@ -9,7 +9,8 @@
9
android:roundIcon="@mipmap/ic_launcher_round"
10
android:allowBackup="false"
11
android:theme="@style/AppTheme"
12
- android:supportsRtl="true">
+ android:supportsRtl="true"
13
+ android:networkSecurityConfig="@xml/network_security_config">
14
<activity
15
android:name=".MainActivity"
16
android:label="@string/app_name"
samples/react-native/android/app/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<network-security-config>
3
+ <domain-config cleartextTrafficPermitted="true">
4
+ <domain includeSubdomains="true">10.0.2.2</domain>
5
+ <domain includeSubdomains="true">localhost</domain>
6
+ </domain-config>
7
+</network-security-config>
0 commit comments