Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30350

CLEARTEXT communication error while running React Native Debugger

$
0
0

In order to fix "cleartext communication to localhost not permitted by a network security policy," error I got while running debugger remotely from a physical device attached to my mac. I created an

network_security_config.xml file and inserted the following code.

<network-security-config>
       <base-config cleartextTrafficPermitted="true">
        <trust-anchors>
            <certificates src="system" />
        </trust-anchors>
    </base-config>
</network-security-config>

I pointed this file to AndroidManifest.xml file.

<application
  android:networkSecurityConfig="@xml/network_security_config"

However, now when I run the application I get this error:

"textTransform" is not a valid style property.StyleSheet root: {"backgroundColor":"#0000000", "fontWeight":"normal", "fontStyle": "normal", "textDecorationLine: "none", "textTransform:: "none"}

If I remove the network_security_config.xml file. Everything runs as expected but I can not access remote debugger.


Viewing all articles
Browse latest Browse all 30350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>