Proxyman iOS
React Native

React Native - iOS

If you're using React Native for the iOS app, you can simply follow the iOS Guideline. There is no difference from the iOS native app.

React Native - Android

Basically, To capture HTTP/HTTPS traffic from React Native for Android apps, it's similar to the native Android app. Please follow Android Setup Guide:
However, It requires you do few steps:
  1. 1.
    Create AndroidManifest.xml if it does not exist. Skip it if it's already available.
To enable proxy for debug variant in android. Modify the AndroidManifest.xml under “debug” variant folder. (Create AndroidManifest.xml with the following configuration if it does not exist).
AndroidManifest.xml file should be located at ~/your_project/android/app/src/debug/AndroidManifest.xml
Create AndroidManifest.xml
2. Edit the AndroidManifest.xml file
Add android:networkSecurityConfig="@xml/network_security_config" to the file.
<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
<application android:networkSecurityConfig="@xml/network_security_config" ... >
...
</application>
</manifest>
3. Create network_security_config.xml file'
If res/xml/network_security_config.xml does not exist, let create the file.
<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="user" />
<certificates src="system" />
</trust-anchors>
</debug-overrides>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
<domain-config>
<!-- Make sure your URL Server here -->
<domain includeSubdomains="true">your_production_domain</domain>
<trust-anchors>
<certificates src="user"/>
<certificates src="system"/>
</trust-anchors>
</domain-config>
</network-security-config>
Make sure you replace your_production_domain with the real domains that you're going to intercept.
4. Follow all steps from Android Guideline.

Reference:

Copy link
On this page
React Native - iOS
React Native - Android