iOS and Android device information for React Native

We've seen similar tools for displaying device informations before, like this one from Rebecca Hughes.

But, she might asked herself, why not merging them into a single module. And since React Native for Android is out, why not making it work for both platforms?

So here is her first hybrid iOS/Android module for React Native.

react-native-device-info

var DeviceInfo = require("react-native-device-info");

console.log("Device Unique ID", DeviceInfo.getUniqueID()); // e.g. FCDBD8EF-62FC-4ECB-B2F5-92C9E79AC7F9

console.log("Device Manufacturer", DeviceInfo.getManufacturer()); // e.g. Apple

console.log("Device Model", DeviceInfo.getModel()); // e.g. iPhone

console.log("Device Name", DeviceInfo.getSystemName()); // e.g. iPhone OS

console.log("Device Version", DeviceInfo.getSystemVersion()); // e.g. 9.0

console.log("Bundle Id", DeviceInfo.getBundleId()); // e.g. com.learnium.mobile

console.log("Build Number", DeviceInfo.getBuildNumber()); // e.g. 89

console.log("App Version", DeviceInfo.getVersion()); // e.g. 1.1.0

console.log("App Version (Readable)", DeviceInfo.getReadableVersion()); // e.g. 1.1.0.89