https://github.com/pchalupa/expo-network-security-config
This Expo config plugin allows you to include a network security config within your app.
https://github.com/pchalupa/expo-network-security-config
expo react-native
Last synced: 12 months ago
JSON representation
This Expo config plugin allows you to include a network security config within your app.
- Host: GitHub
- URL: https://github.com/pchalupa/expo-network-security-config
- Owner: pchalupa
- Created: 2024-07-10T15:27:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-07T05:14:12.000Z (about 1 year ago)
- Last Synced: 2025-07-07T06:26:25.260Z (about 1 year ago)
- Topics: expo, react-native
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/expo-network-security-config
- Size: 591 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Expo Network Security Config
This [Expo config plugin](https://docs.expo.dev/config-plugins/introduction/) allows you to include a [network security config](https://developer.android.com/privacy-and-security/security-config) within your app.
This is helpful in cases when you need to allow HTTPS interception for tools like [Proxyman](https://developer.android.com/privacy-and-security/security-config) in your Android app.
### Platform Compatibility
| Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
| -------------- | ---------------- | ---------- | ------------- | --- |
| ✅ | ✅ | ❌ | ❌ | ❌ |
## Usage
```js
{
plugins: [
[
'expo-network-security-config',
{
networkSecurityConfig: './assets/configs/network_security_config.xml',
enable: true,
},
],
];
}
```
## API
| Parameter | Description |
| --------------------- | ----------------------------------- |
| networkSecurityConfig | Path to network_security_config.xml |
| enable | Enable or disable this config |