A UIDevice class wrapper for React Native
Objective-C JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore DS_Store Removed Sep 16, 2015
CHANGELOG.md bump changelog Sep 26, 2015
Device.js add deviceVersion for slowDevice Dec 10, 2015
DeviceUtil.h Native UIDevice Aug 24, 2015
DeviceUtil.m add deviceVersion for slowDevice Dec 10, 2015
README.md Update README.md Sep 16, 2016
package.json 1.0.1 Sep 26, 2015


React Native Device [deprecated]

This project is no longer maintained. You can still use it as is, but bugs will no longer be fixed, features will no longer be implemented. An alternative to this package might be react-native-device-info

NPM Stats

A wrapper for the native iOS UIDevice & Android Build class allowing you to access device properties and screen dimensions. Currently only for React Native iOS, Android support in progress.

Installation (iOS)

First install the package to your project from NPM...

npm install react-native-device --save

Then within the package folder just add both the .h and .m classes to your project...



The device model is of type iPad


The device model is of type iPhone



The device model, such as iPhone or iPad


The device name, such as John Smith's iPhone


The device OS name, such as iPhone OS


The device OS version, such as 8.4


The specific device version, such as iPhone 4S or iPhone 6 - All model options


'use strict';

var Device = require('react-native-device');

var ExampleApp = React.createClass({
  render: function() {
    if (Device.isIpad()) {
      // return iPad layout
    } else {
      // return iPhone layout