Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
@amazon-devices/expo-network provides useful information about the device’s network such as its IP address, MAC address, and airplane mode status.

Installation

  1. Add the JavaScript library dependency in the package.json file.
  2. Reinstall dependencies using the npm install command.

Examples

To test network features, you must connect to the WiFi on your device shell. Replace NETWORK and PASSWORD with your credentials.

API reference

See the documentation page for information about this library and API reference: Official Expo documentation for expo-network.

Methods

Known issues and limitations

  • Network.isAirplaneModeEnabledAsync() - Always returns false.
  • Network.getNetworkStateAsync() - The isInternetReachable field is always missing.
  • Network.getNetworkStateAsync() - The type field can only be either NONE or WIFI.

Test on the simulator

You can test the network connection on the Vega Virtual Device by running the following commands.

Supported versions

Supported Third-Party Libraries and Services.
Last modified on September 30, 2025