New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-pk-wifi-manager

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-pk-wifi-manager

wifi connect with ssid and password

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32
decreased by-8.57%
Maintainers
1
Weekly downloads
 
Created
Source

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 => {
           
});

Keywords

FAQs

Package last updated on 24 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc