
Description
react-native-device-info is a library that gives React Native apps device information on iOS and Android. It exposes many device properties, with most APIs returning a Promise and a synchronous variant ending in Sync for calls such as checking whether a camera is present during app startup. Where a value is not available on a platform, the library returns a default: unknown for strings, -1 for numbers, false for booleans, and empty arrays or objects. The README lists support across iOS, Android, Windows, web and visionOS, and it notes that some APIs are platform-specific. For example, getUserAgentSync is supported only on Android. Installation is through npm or yarn. Automatic linking is supported on all platforms, and the README advises upgrading to modern React Native versions rather than linking manually. For Android, the library defaults to AndroidX, and the README explains how to configure library versions and when to use the Jetifier package in reverse mode for non-AndroidX projects. Install Referrer tracking needs a ProGuard rule. Version 7 requires an iOS 10 minimum in your Podfile, since it no longer supports iOS 9. The example app in the repository shows every API, which is the reference to check when something looks wrong.…
Highlights
- Device information for iOS and Android in React Native
- Promise-based APIs with synchronous variants
- Automatic linking on all platforms
- Platform support listed for iOS, Android, Windows, web and visionOS
Ratings & Reviews
No ratings yet
Be the first to rate react-native-device-info.
People also visit

react-native-idfa
Android and iOS module for react-native to read IDFA (advertising identifier)
react-native-device-info FAQ
What does it provide?
Information about the device on iOS and Android, through a set of APIs that return Promises, plus synchronous versions for some.
What happens when a value is unavailable?
The library returns a default: unknown for strings, -1 for numbers, false for booleans, and empty arrays or objects.
How do I install it?
Install with npm or yarn. Automatic linking is supported.
What iOS version does version 7 need?
A minimum of iOS 10 in the Podfile, since version 7 no longer supports iOS 9.
Does it work with AndroidX?
It defaults to AndroidX. The README explains the non-AndroidX case with the Jetifier package.
What are the best react-native-device-info alternatives?
Popular alternatives to react-native-device-info include react-native-version-info, react-native-version-number and react-native-os. See all react-native-device-info alternatives
















