-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeviceinfo.js
More file actions
35 lines (33 loc) · 816 Bytes
/
deviceinfo.js
File metadata and controls
35 lines (33 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* @providesModule react-native-device-info
*/
var { RNDeviceInfo } = require('react-native').NativeModules;
module.exports = {
getUniqueID: function () {
return RNDeviceInfo.deviceId;
},
getManufacturer: function () {
return RNDeviceInfo.systemManufacturer;
},
getModel: function () {
return RNDeviceInfo.model;
},
getSystemName: function () {
return RNDeviceInfo.systemName;
},
getSystemVersion: function () {
return RNDeviceInfo.systemVersion;
},
getBundleId: function() {
return RNDeviceInfo.bundleId;
},
getBuildNumber: function() {
return RNDeviceInfo.buildNumber;
},
getVersion: function() {
return RNDeviceInfo.appVersion;
},
getReadableVersion: function() {
return RNDeviceInfo.appVersion + "." + RNDeviceInfo.buildNumber;
}
};