react-native-vpn-detector-latest
v1.0.0
Published
A React Native module that allows you to use native modules to detect VPN and Proxy Enabled in user network.
Maintainers
Readme
react-native-vpn-detector
This Library used to detect vpn
Installation
npm install react-native-vpn-detectorUsage
import * as VpnDetector from 'react-native-vpn-detector';
useEffect(() => {
VpnDetector.isVPNEnabled(result => {
console.log('VPN Enabled:', result);
setisVpnEnabled(result == 'YES');
});
VpnDetector.isProxyEnabled(result => {
console.log('Proxy Enabled:', result);
setIsProxyEnabled(result == 'YES');
});
}, []);Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
