This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Expo Device iconExpo Device

A universal library provides access to system information about the physical device.

Android
iOS
tvOS
Web
Included in Expo Go
Recommended version:
~56.0.4

expo-device provides access to system information about the physical device, such as its manufacturer and model.

Installation

Terminal
- npx expo install expo-device
- yarn expo install expo-device
- pnpm expo install expo-device
- bun expo install expo-device

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

Basic Device Usage
import { Text, View } from 'react-native'; import * as Device from 'expo-device'; export default function App() { return ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> <Text> {Device.manufacturer}: {Device.modelName} </Text> </View> ); }

API

import * as Device from 'expo-device';

No API data file found, sorry!

Error codes

CodeDescription
ERR_DEVICE_ROOT_DETECTIONError code thrown for isRootedExperimentalAsync. This may be thrown if there's no read access to certain system files.