Skip to main content

Events

All event types are made available through the named export Event:

import { Event } from '@react-native-tethering/wifi';

Connection

OnNetworkDisconnected

Fired when a connected network lost whether WiFi turned off or any other case

Scanning

OnWifiScanResults

Fired when enabling autoScan in setWifiEnabled

ParamTypeDescription
networksarray of NetworkList of networks details ssid, bssid and more