Complete API documentation for react-native-nitro-device-info.
The API is organized into the following categories:
Synchronous properties providing instant access to basic device information:
deviceId, brand, model - Device identificationsystemName, systemVersion - OS informationdeviceType - Device category (Handset, Tablet, etc.)Methods to check device features and hardware:
isTablet() - Tablet detectionhasNotch(), hasDynamicIsland() - Display featuresisCameraPresent(), isPinOrFingerprintSet() - Hardware checksisEmulator() - Simulator/emulator detectionUnique identifiers and manufacturer information:
getUniqueId() - Platform-specific unique IDgetManufacturer() - Device manufacturerMemory and storage monitoring:
getTotalMemory(), getUsedMemory() - RAM informationgetTotalDiskCapacity(), getFreeDiskStorage() - Storage informationBattery status and power state:
getBatteryLevel() - Current battery level (0.0-1.0)getPowerState() - Comprehensive power stateisBatteryCharging() - Charging statusisLowBatteryLevel(threshold) - Low battery checkInformation about your application:
getVersion(), getBuildNumber() - App version infogetBundleId(), getApplicationName() - App identitygetFirstInstallTime(), getLastUpdateTime() - Installation timestampsNetwork and connectivity information (mostly async):
getIpAddress() - Local IP addressgetCarrier() - Cellular carrier nameisLocationEnabled() - Location services statusisHeadphonesConnected() - Audio output detectionPlatform-specific functionality:
getApiLevel() - Android API levelgetSupportedAbis() - CPU architectureshasGms(), hasHms() - Mobile services detectionhasSystemFeature(feature) - Android feature detectionAndroid system build details:
serialNumber, androidId, securityPatchfingerprint, bootloader, hardwareAdvanced device state and features:
isAirplaneMode() - Airplane mode statusisLowRamDevice() - Low RAM device detectionisLandscape() - Orientation detectioniOS-exclusive functionality:
isDisplayZoomed() - Display Zoom settinggetBrightness() - Screen brightnessgetDeviceToken() - DeviceCheck tokensyncUniqueId() - iCloud Keychain syncSynchronous (<1ms):
Asynchronous (10-100ms):
Very Slow (500-2000ms):
getUserAgent() on iOS (first call)getDeviceToken() on iOSPromise.all() for parallel executionipAddressSync, carrierSync)The library includes full TypeScript definitions. See Type Definitions for detailed information about:
PowerState - Battery and power stateBatteryState - Battery charging statusDeviceType - Device category typesIf you're migrating from react-native-device-info, check out the Migration Guide for:
Most APIs work on both iOS and Android, with some platform-specific features:
hasNotch(), hasDynamicIsland(), getBrightness(), getDeviceToken()getApiLevel(), Android Build info, hasGms(), hasSystemFeature()See the DeviceInfo Module page for detailed platform compatibility information.