Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported asset WifiManager is null #29

Open
deadventures opened this issue Jul 11, 2019 · 0 comments
Open

Imported asset WifiManager is null #29

deadventures opened this issue Jul 11, 2019 · 0 comments

Comments

@deadventures
Copy link

I installed with npm and linked with react-native link but the imported asset I get is always null. Is there something wrong with my setup or something I'm not doing correctly?

This is the exact error

TypeError: null is not an object (evaluating '_reactNativeWifi.default.connectToProtectedSSID')

For clarity, I am using Expo and this is my process:

  1. expo init project-name
  2. cd project-name
  3. npm i react-native-wifi
  4. react-native link react-native-wifi
  5. [add example code from README to expo App.js]
  6. expo start

At that point it fails on the connectToProtectedSSID() method with the error stated above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant