React Native Wifi Reborn

screenshot of React Native Wifi Reborn
react
react-native

A react-native implementation for viewing and connecting to Wifi networks on Android and iOS devices.

Overview

The react-native-wifi-reborn is a project that continues the development of the no longer maintained react-native-wifi project. It provides functionality to connect to Wi-Fi networks on both iOS and Android platforms. The installation process involves setting up permissions and linking the library, while also providing support for different React Native versions and platforms.

Features

  • Autolinking Support: Library is correctly autolinked on React Native 60+.
  • Cross-Platform Compatibility: Methods work on both Android and iOS.
  • Connect to Protected Wi-Fi: Allows connecting to protected Wi-Fi networks with specified SSID, password, and encryption types.
  • Customization with Props: Provides props for extra customization, like the fineLocationPermission option.

iOS

  1. Add RNWifi.xcodeproj from node_modules/react-native-wifi-reborn to your Xcode project.
  2. Add libRNWifi.a to your project's Build Phases ➜ Link Binary With Libraries.
  3. Run your project.

Android

  1. In MainActivity.java, import com.reactlibrary.rnwifi.RNWifiPackage, and add it to the list returned by the getPackages() method.
  2. Modify android/settings.gradle and android/app/build.gradle following the provided instructions.

Props and Prebuild Plugin

  1. Add the config plugin to app.json or app.config.js after installing the npm package.
  2. Rebuild the app to incorporate any changes in props or plugins.

Summary

The react-native-wifi-reborn project is a continuation of the react-native-wifi library, providing methods to connect to Wi-Fi networks on both iOS and Android platforms. The installation process involves setting up permissions and linking the library for both platforms. Additionally, the library offers autolinking support, cross-platform compatibility, customization through props, and the ability to connect to protected Wi-Fi networks with specified credentials.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

react-native
React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.