How can I create a VPN connection (PPTP or anything else) with react-native in android and then connect to it?
Establish a VPN connection with react-native on android
Asked Answered
I was here(Until someone wrote a lib) –
Exactitude
@EJChathuranga what was the library? can you share it here? –
Terminus
You can use react-native-ip-sec-vpn now!
Use it like as follow:
import {prepare, connect} from "react-native-ip-sec-vpn";
...
useEffect(() => {
prepare();
}); /// or use componentDidmount in case of a class component
...
connect(address, username, password)
© 2022 - 2024 — McMap. All rights reserved.