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
Param | Type | Description |
---|---|---|
networks | array of Network | List of networks details ssid, bssid and more |