Skip to main content

expo-device

Version: 55.0.7 A universal module that gets physical information about the device running the application.

Installation

Usage

API Reference

Properties

string | null
Device brand (e.g., “Apple”, “Samsung”)
string | null
Device manufacturer
string | null
Device model name (e.g., “iPhone 14 Pro”, “Pixel 7”)
string | null
Internal model identifier
string | null
Device design name
string | null
Product name
number | null
Approximate year the device was released
number
Total device memory in bytes
string[] | null
Supported CPU architectures (e.g., [“arm64”, “armv7”])
string
OS name (“iOS”, “Android”, etc.)
string
OS version string
string | null
OS build ID
string | null
Internal OS build identifier
number | null
Android only: Android API level
string | null
User-assigned device name (e.g., “John’s iPhone”)
DeviceType
Type of device:
  • Device.DeviceType.PHONE
  • Device.DeviceType.TABLET
  • Device.DeviceType.DESKTOP
  • Device.DeviceType.TV
  • Device.DeviceType.UNKNOWN

Methods

() => Promise<DeviceType>
Asynchronously gets device type
() => Promise<boolean>
Experimental: Checks if device is rooted/jailbroken
() => Promise<boolean>
Android only: Checks if side-loading is enabled
() => Promise<string[]>
Android only: Gets list of supported platform features
(feature: string) => Promise<boolean>
Android only: Checks if device supports a specific feature
() => Promise<number>
Gets maximum available memory in bytes

Examples

Display Device Info

Check Device Capabilities

Responsive Layout Based on Device

Platform Support

Resources