'React native Wifi list
Is there a way to scan and all get Wifi list using react native for Android and iOS. I have seen a few libraries but mostly for android and even those doesnt work properly. Any suggestions?
If I need to write Native Modules can you point me to right direction. Never wrote a native module for React Native before.
Solution 1:[1]
https://www.npmjs.com/package/react-native-wifi-reborn
Has method loadWifiList()
gives Promise<Array<WifiEntry>>
Also you want to forcefully rescan :
method reScanAndLoadWifiList()
gives Promise<Array<string>>
Solution 2:[2]
react-native-wifi: https://github.com/blackdeve/react-native-wifi
You can read docs about Native Modules under Guide section. Here are quick links
Here is react-native-create-library, it will help you to create a React Native library with a single command.
Another blog on Medium about How to use Native Modules in React Native + Android - Hybrid Apps.
Solution 3:[3]
You can use react-native-wifi-reborn
(https://github.com/JuanSeBestia/react-native-wifi-reborn) but there is no way to create a wifi list in iOS.
An explanation of a Apple Support https://developer.apple.com/forums/thread/39204
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Florin Dobre |
Solution 2 | |
Solution 3 | Alejandro Piumetti |