react-native-device-info
Advanced tools
Comparing version 0.12.1 to 0.13.0
@@ -5,2 +5,5 @@ ## Release Notes | ||
- Make play-services optional (https://github.com/rebeccahughes/react-native-device-info/pull/226) | ||
- Critical fix on WIFI STATE (https://github.com/rebeccahughes/react-native-device-info/pull/249) | ||
### 0.12.0 | ||
@@ -7,0 +10,0 @@ |
@@ -23,2 +23,3 @@ // should be imported this way: | ||
export function isTablet(): boolean; | ||
export function is24Hour(): boolean; | ||
export function isPinOrFingerprintSet(): (cb: (isPinOrFingerprintSet: boolean) => void) => void; | ||
@@ -30,1 +31,4 @@ export function getFirstInstallTime(): number; | ||
export function getMACAddress(): Promise<string>; | ||
export function getPhoneNumber(): string; | ||
export function getAPILevel(): number; | ||
export function getCarrier(): string; |
@@ -8,3 +8,3 @@ /** | ||
module.exports = { | ||
getUniqueID: function () { | ||
getUniqueID: function() { | ||
return RNDeviceInfo.uniqueId; | ||
@@ -15,30 +15,30 @@ }, | ||
}, | ||
getSerialNumber: function () { | ||
getSerialNumber: function() { | ||
return RNDeviceInfo.serialNumber; | ||
}, | ||
getIPAddress: function () { | ||
getIPAddress: function() { | ||
return RNDeviceInfo.getIpAddress(); | ||
}, | ||
getMACAddress: function () { | ||
getMACAddress: function() { | ||
return RNDeviceInfo.getMacAddress(); | ||
}, | ||
getDeviceId: function () { | ||
getDeviceId: function() { | ||
return RNDeviceInfo.deviceId; | ||
}, | ||
getManufacturer: function () { | ||
getManufacturer: function() { | ||
return RNDeviceInfo.systemManufacturer; | ||
}, | ||
getModel: function () { | ||
getModel: function() { | ||
return RNDeviceInfo.model; | ||
}, | ||
getBrand: function () { | ||
getBrand: function() { | ||
return RNDeviceInfo.brand; | ||
}, | ||
getSystemName: function () { | ||
getSystemName: function() { | ||
return RNDeviceInfo.systemName; | ||
}, | ||
getSystemVersion: function () { | ||
getSystemVersion: function() { | ||
return RNDeviceInfo.systemVersion; | ||
}, | ||
getAPILevel: function () { | ||
getAPILevel: function() { | ||
return RNDeviceInfo.apiLevel; | ||
@@ -56,3 +56,3 @@ }, | ||
getReadableVersion: function() { | ||
return RNDeviceInfo.appVersion + "." + RNDeviceInfo.buildNumber; | ||
return RNDeviceInfo.appVersion + '.' + RNDeviceInfo.buildNumber; | ||
}, | ||
@@ -80,14 +80,20 @@ getDeviceName: function() { | ||
}, | ||
is24Hour: function() { | ||
return RNDeviceInfo.is24Hour; | ||
}, | ||
isPinOrFingerprintSet: function () { | ||
return RNDeviceInfo.isPinOrFingerprintSet; | ||
}, | ||
getFirstInstallTime: function () { | ||
getFirstInstallTime: function() { | ||
return RNDeviceInfo.firstInstallTime; | ||
}, | ||
getLastUpdateTime: function () { | ||
getLastUpdateTime: function() { | ||
return RNDeviceInfo.lastUpdateTime; | ||
}, | ||
getPhoneNumber: function () { | ||
getPhoneNumber: function() { | ||
return RNDeviceInfo.phoneNumber; | ||
} | ||
}, | ||
getCarrier: function() { | ||
return RNDeviceInfo.carrier; | ||
}, | ||
}; |
{ | ||
"name": "react-native-device-info", | ||
"version": "0.12.1", | ||
"version": "0.13.0", | ||
"description": "Get device information using react-native", | ||
@@ -5,0 +5,0 @@ "main": "deviceinfo.js", |
@@ -181,3 +181,3 @@ # react-native-device-info | ||
| Device Name | `getDeviceName()` | `string` e.g. "Becca's iPhone 6" | | | ||
| User Agent | `getUserAgent()` | `string` e.g. "Dalvik/2.1.0 (Linux; U; Android 5.1; Google Nexus 4 - 5.1.0 - API 22 - 768x1280 Build/LMY47D)" | | | ||
| User Agent | `getUserAgent()` | `string` e.g. "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.009; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36" | | | ||
| Device Locale | `getDeviceLocale()` | `string` e.g. "en-US" | | | ||
@@ -197,3 +197,3 @@ | Device Country | `getDeviceCountry()` | `string` e.g. "US" | | | ||
| MAC Address | `getMACAddress()` | `Promise<string>` | Only supported in Android | ||
| Carrier | `getCarrier()` | `string` e.g. "SOFTBANK" | | | | ||
Since the device setting for PIN/Fingerprint can be modified while the app is still open, this is available via callback instead of as a constant. To use, pass a callback function to the returned bridge function in your javascript: | ||
@@ -200,0 +200,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121332
139
26