Skip to content

Imported asset WifiManager is null #29

@deadventures

Description

@deadventures

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions