> 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.

# Introduction

`react-native-nitro-device-info` reads device information from Swift and Kotlin through [Nitro Modules](https://nitro.margelo.com/). It provides synchronous properties, synchronous methods, Promise-based methods, and React hooks.

## Start with your task

| Task                                         | Read first                                                                  |
| -------------------------------------------- | --------------------------------------------------------------------------- |
| Install in a React Native app                | [Getting Started](/react-native-nitro-device-info/guide/getting-started.md) |
| Install in an Expo app                       | [Expo Setup](/react-native-nitro-device-info/guide/expo-setup.md)           |
| Read device information                      | [Quick Start](/react-native-nitro-device-info/guide/quick-start.md)         |
| Update a component when device state changes | [React Hooks Guide](/react-native-nitro-device-info/guide/react-hooks.md)   |
| Replace `react-native-device-info`           | [Migration Guide](/react-native-nitro-device-info/api/migration.md)         |
| Build for web or server rendering            | [Web Support](/react-native-nitro-device-info/guide/web-support.md)         |
| Find an exact signature or platform fallback | [API Reference](/react-native-nitro-device-info/api/index.md)               |
| Use documentation with an AI assistant       | [MCP Integration](/react-native-nitro-device-info/guide/mcp-integration.md) |

## Choose an API entry point

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

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

```typescript
// 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](/react-native-nitro-device-info/api/migration.md#compat-layer-caveats) 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](/react-native-nitro-device-info/guide/web-support.md).

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](/react-native-nitro-device-info/api/device-integrity.md) 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](/react-native-nitro-device-info/api/device-attestation.md).

For the architecture and measurement guidance, read [Why Nitro Module](/react-native-nitro-device-info/guide/why-nitro-module.md).
