Getting Started
Tethering Hotspot is an Android module for your react-native and expo app which provides Hotspot functionalities such as scanning, change states and more. It built on top of the latest/official Android Connectivity classes.
Installation
- NPM
- Yarn
npm install @react-native-tethering/hotspot
yarn add @react-native-tethering/hotspot
Minimum requirements
react-native
>= 0.63.0expo
>= 41 (if you use Expo)typescript
>= 4.1.0 (if you use TypeScript)
Needed Permissions
<!-- For wifi scanning and network details -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_SETTINGS"
tools:ignore="ProtectedPermissions" />
info
if you target android 13 and above you will need to include that permission as well
<uses-permission android:name="android.permission.NEARBY_WIFI_DEVICES" />
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 🚀.