expo-network
Version: 55.0.6 Provides useful information about the device’s network such as its IP address, MAC address, and airplane mode status.Installation
Usage
API Reference
Methods
() => Promise<string>
Gets device IP address
() => Promise<NetworkState>
Gets network connection state
() => Promise<boolean>
Checks if airplane mode is enabled
Types
NetworkState
NetworkStateType
Network type:
NONE, UNKNOWN, CELLULAR, WIFI, BLUETOOTH, ETHERNET, WIMAX, VPN, OTHERboolean
Whether device is connected to network
boolean
Whether internet is reachable