Getting Started
Tethering WiFi is an Android module for your react-native and expo app which provides WiFi functionalities such as scanning, connecting and more. It built on top of the latest/official Android WiFi classes.
info
Currently Android 10 and above are supported.
Installation
- NPM
- Yarn
npm install @react-native-tethering/wifi
yarn add @react-native-tethering/wifi
Minimum requirements
react-native
>= 0.63.0expo
>= 41 (if you use Expo)typescript
>= 4.1.0 (if you use TypeScript)
Needed Permissions
<!-- For wifi to check state and change it -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<!-- For wifi scanning and network details -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Use Expo
TODO
Run the App
React-Native or Expo will link the module automatically during building after that you should see your app running in your Emulator/Device which means you're ready to go 🚀.