Skip to content
R

react-native-device-info

Device information for iOS and Android

by react-native-device-infoFree

#29in UI Libraries
0In stores

Description

react-native-device-info is a library that gives React Native apps device information on iOS and Android. It exposes many device properties,…

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

R

react-native-version-info

Access native app version in React Native

UI Libraries
Launch
R

react-native-version-number

Access app version inside React Native

UI Libraries
Launch
R

react-native-os

node's os module for react-native

UI Libraries
Launch
R

react-native-idfa

Android and iOS module for react-native to read IDFA (advertising identifier)

UI Libraries
Launch
R

react-native-prompt-android

Polyfill for Alert.prompt on Android

UI Libraries
Launch
R

React Native Config

Bring some 12 factor love to your mobile apps!

Utilities
Launch

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

Developer Stuff

Badges