![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
react-native-wifi-reborn
Advanced tools
A react-native implementation for viewing and connecting to Wifi networks on Android and iOS devices.
This project is based on (https://github.com/robwalkerco/react-native-wifi)
$ npm install react-native-wifi-reborn --save
$ react-native link react-native-wifi-reborn
You need use enable Access WIFI Information, with correct profile
You need put "Privacy - Location When In Use Usage Description" or "Privacy - Location Always and When In Use Usage Description" in Settings -> info
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-wifi
and add RNWifi.xcodeproj
libRNWifi.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNWifiPackage;
to the imports at the top of the filenew RNWifiPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-wifi-reborn'
project(':react-native-wifi-reborn').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-wifi/android')
android/app/build.gradle
:
implementation project(':react-native-wifi-reborn')
import WifiManager from 'react-native-wifi-reborn';
WifiManager.connectToProtectedSSID(ssid, password, isWep)
.then(() => {
console.log('Connected successfully!')
}, () => {
console.log('Connection failed!')
})
WifiManager.getCurrentWifiSSID()
.then((ssid) => {
console.log("Your current connected wifi SSID is " + ssid)
}, () => {
console.log('Cannot get current SSID!')
})
FAQs
A react-native implementation for viewing and connecting to Wifi networks on Android and iOS devices.
The npm package react-native-wifi-reborn receives a total of 12,236 weekly downloads. As such, react-native-wifi-reborn popularity was classified as popular.
We found that react-native-wifi-reborn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.