# react-native-pk-wifi-manager

> wifi connect with ssid and password

Latest version **2.0.0** (published 2023-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-pk-wifi-manager
pnpm add react-native-pk-wifi-manager
yarn add react-native-pk-wifi-manager
bun add react-native-pk-wifi-manager
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-08-24 |
| First published | 2023-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | prudhvi |
| Maintainers | rithvikbanki |
| Keywords | wifi-manager, wifi-hotspot, connect wifi |

## Links

- npm: https://www.npmjs.com/package/react-native-pk-wifi-manager
- Repository: https://github.com/PrudhviBanki/react-native-pk-wifi-reborn
- Homepage: https://github.com/PrudhviBanki/react-native-pk-wifi-reborn#readme
- Issues: https://github.com/PrudhviBanki/react-native-pk-wifi-reborn/issues
- npm.io page: https://npm.io/package/react-native-pk-wifi-manager

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^18.1.0
- [react-native](https://npm.io/package/react-native.md) ^0.71.1

## Recent versions

- 2.0.0 (latest) — 2023-08-24
- 1.0.6 — 2023-08-24
- 1.0.5 — 2023-08-24
- 1.0.4 — 2023-08-11
- 1.0.3 — 2023-08-10
- 1.0.2 — 2023-08-10
- 1.0.1 — 2023-08-10
- 1.0.0 — 2023-08-09

## README

# 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

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

---
_Source: https://npm.io/package/react-native-pk-wifi-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
