2.0.0 • Published 9 months ago

react-native-pk-wifi-manager v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

react-native-pk-wifi-reborn

This npm supports both Android and iOS.

Getting started

Mostly automatic installation

$ npm i react-native-pk-wifi-manager

Android

#ACCESS_FINE_LOCATION permission: You must request the ACCESS_FINE_LOCATION permission at runtime to use the device's Wi-Fi scanning and managing capabilities. In order to accomplish this, you can use the PermissionsAndroid API or React Native Permissions.

iOS

=>install pod
=>Add Hotspot,Location permissons in your app

Usage

import MyWifiModule from 'react-native-pk-wifi-manager';


//Scan list of wifi
MyWifiModule.getAvailableWifiNetworks(true)
.then(networks => {
              
})
.catch(error => {
              
});

//connect with ssid and password method
MyWifiModule.connectToWifi('ssid', 'password',true)
.then(() => {
         
})
.catch(error => {
           
});

//Disconnect wifi method
MyWifiModule.disconnectFromWifiNetwork.then(() => {
         
})
.catch(error => {
           
});
2.0.0

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago