Socket
Socket
Sign inDemoInstall

react-native-wifi-connect

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

Connect Wifi Direct


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-wifi-connect

Interconnect WiFi

Installation

yarn add react-native-wifi-connect

Usage

import {
  hotspot,
  connect,
  wifiSwitch,
  isWifiOn,
} from 'react-native-wifi-connect';

To switch wifi state

wifiSwitch();

To create temporary hotspot with no internet capabilities

Returns temp ssid and passphrase separated by # (" #").

hotspot().then((ssid_pass: String) => {
  console.info(ssid_pass);
});

Connect to other wifi network

connect(ssid: String, pass: String);

To check id wifi is on

isWifiOn().then((b: boolean) => {
  if (b) {
    console.log('Yes');
  } else {
    console.log('No');
  }
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Package last updated on 30 Nov 2022

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