For AI agents: the complete documentation index is available at /react-native-nitro-device-info/llms.txt, the full documentation bundle is available at /react-native-nitro-device-info/llms-full.txt, and this page is available as Markdown at /react-native-nitro-device-info/guide/introduction.md.

Introduction

react-native-nitro-device-info reads device information from Swift and Kotlin through Nitro Modules. It provides synchronous properties, synchronous methods, Promise-based methods, and React hooks.

Start with your task

TaskRead first
Install in a React Native appGetting Started
Install in an Expo appExpo Setup
Read device informationQuick Start
Update a component when device state changesReact Hooks Guide
Replace react-native-device-infoMigration Guide
Build for web or server renderingWeb Support
Find an exact signature or platform fallbackAPI Reference
Use documentation with an AI assistantMCP Integration

Choose an API entry point

The package has two API entry points. Their names and return types differ.

// Native API: named singleton, properties, and methods.
import { DeviceInfoModule } from 'react-native-nitro-device-info';
const model = DeviceInfoModule.model;
const battery = DeviceInfoModule.getBatteryLevel();
// Compatibility API: react-native-device-info-style functions.
import DeviceInfo from 'react-native-nitro-device-info/compat';

async function readBattery() {
  return await DeviceInfo.getBatteryLevel();
}
const model = DeviceInfo.getModel();

The compatibility layer targets react-native-device-info 15.x. Review its placeholder values and behavior differences before migrating.

Platforms and return values

  • iOS: The library's deployment target is 15.1+.
  • Android: The library's minimum SDK is API 24 (Android 7.0).
  • Web: A JavaScript fallback provides browser-derived values where available. Other APIs return placeholders; see Web Support.

Your React Native and Nitro versions can impose higher platform requirements. Synchronous calls return directly and run on the calling thread. They do not guarantee a particular execution time.

Unsupported or unavailable values can be "unknown", -1, false, or an empty collection. Check each API's contract before using a result.

Device information and security

Local integrity checks detect root or jailbreak indicators. They are bypassable and do not prove that a device is trustworthy.

For tokens that your backend verifies, use the separate, optional react-native-nitro-device-integrity package.

For the architecture and measurement guidance, read Why Nitro Module.