10

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.

Vinay
  • 361
  • 1
  • 4
  • 11

3 Answers3

3

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>>

Florin Dobre
  • 9,872
  • 3
  • 59
  • 93
Sagar Gala
  • 31
  • 3
0

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

-1

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.

Pir Shukarullah Shah
  • 4,124
  • 2
  • 22
  • 42
  • unfortunately `react-native-wifi` is no longer maintained in 2020 a good fork is `react-native-wifi-rebord` but it does not include this functionality for IOS.. – Blue Bot Jun 15 '20 at 09:44