Trying to connect showing null
Hi there,
I'm trying to create a simple vpn client using expo, I tried my best to follow the instructions and run the example first but I'm getting TypeError: Cannot read property 'connect' of null when i press the connect button. Can someone please tell me which part I'm doing wrong.
Steps I followed:
- npx expo prebuild --clean
- update the settings.gradle file to include include ':vpnLib' project(':vpnLib').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-simple-openvpn/vpnLib')
- include jinLibs to src/main/jinLibs
- npx expo prebuild --clean
- npx expo start
- Scan and run the app on android
Please give me a hand I really need this
I haven't tested Expo myself, so I'm not sure if it's supported. However, there might be people who have tried it and succeeded. You can take a look at this issue https://github.com/ccnnde/react-native-simple-openvpn/issues/46 and consult with Maders for more information.
https://github.com/ccnnde/react-native-simple-openvpn/issues/68#issuecomment-2446401034