react-native-simple-openvpn icon indicating copy to clipboard operation
react-native-simple-openvpn copied to clipboard

Trying to connect showing null

Open mikias21 opened this issue 2 years ago • 1 comments

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:

  1. npx expo prebuild --clean
  2. update the settings.gradle file to include include ':vpnLib' project(':vpnLib').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-simple-openvpn/vpnLib')
  3. include jinLibs to src/main/jinLibs
  4. npx expo prebuild --clean
  5. npx expo start
  6. Scan and run the app on android

Please give me a hand I really need this

mikias21 avatar Dec 06 '23 04:12 mikias21

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.

ccnnde avatar Dec 08 '23 01:12 ccnnde

https://github.com/ccnnde/react-native-simple-openvpn/issues/68#issuecomment-2446401034

ccnnde avatar Oct 31 '24 02:10 ccnnde