react-native-device-info
Advanced tools
Comparing version 0.22.4 to 0.22.5
## Release Notes | ||
### next | ||
### 0.22.5 | ||
* Fix typescript declaration export (https://github.com/rebeccahughes/react-native-device-info/pull/478) | ||
### 0.22.4 | ||
* Shrank the npm package size (https://github.com/rebeccahughes/react-native-device-info/issues/477) | ||
@@ -5,0 +10,0 @@ |
// should be imported this way: | ||
// import * as DeviceInfo from 'react-native-device-info'; | ||
// import DeviceInfo from 'react-native-device-info'; | ||
export function getUniqueID(): string; | ||
export function getManufacturer(): string; | ||
export function getBrand(): string; | ||
export function getModel(): string; | ||
export function getDeviceId(): string; | ||
export function getSystemName(): string; | ||
export function getSystemVersion(): string; | ||
export function getBundleId(): string; | ||
export function getApplicationName(): string; | ||
export function getBuildNumber(): string; | ||
export function getVersion(): string; | ||
export function getReadableVersion(): string; | ||
export function getDeviceName(): string; | ||
export function getUserAgent(): string; | ||
export function getDeviceLocale(): string; | ||
export function getDeviceCountry(): string; | ||
export function getTimezone(): string; | ||
export function getInstanceID(): string; | ||
export function getInstallReferrer(): string; | ||
export function isEmulator(): boolean; | ||
export function isTablet(): boolean; | ||
export function getFontScale(): number; | ||
export function is24Hour(): boolean; | ||
export function isPinOrFingerprintSet(): ( | ||
cb: (isPinOrFingerprintSet: boolean) => void | ||
) => void; | ||
export function getFirstInstallTime(): number; | ||
export function getLastUpdateTime(): number; | ||
export function getSerialNumber(): string; | ||
export function getIPAddress(): Promise<string>; | ||
export function getMACAddress(): Promise<string>; | ||
export function getPhoneNumber(): string; | ||
export function getAPILevel(): number; | ||
export function getCarrier(): string; | ||
export function getTotalMemory(): number; | ||
export function getMaxMemory(): number; | ||
export function getTotalDiskCapacity(): number; | ||
export function getFreeDiskStorage(): number; | ||
export function getBatteryLevel(): Promise<number>; | ||
declare const _default: { | ||
getUniqueID: () => string; | ||
getManufacturer: () => string; | ||
getBrand: () => string; | ||
getModel: () => string; | ||
getDeviceId: () => string; | ||
getSystemName: () => string; | ||
getSystemVersion: () => string; | ||
getBundleId: () => string; | ||
getApplicationName: () => string; | ||
getBuildNumber: () => string; | ||
getVersion: () => string; | ||
getReadableVersion: () => string; | ||
getDeviceName: () => string; | ||
getUserAgent: () => string; | ||
getDeviceLocale: () => string; | ||
getDeviceCountry: () => string; | ||
getTimezone: () => string; | ||
getInstanceID: () => string; | ||
getInstallReferrer: () => string; | ||
isEmulator: () => boolean; | ||
isTablet: () => boolean; | ||
getFontScale: () => number; | ||
is24Hour: () => boolean; | ||
isPinOrFingerprintSet: (cb: (isPinOrFingerprintSet: boolean) => void) => void; | ||
getFirstInstallTime: () => number; | ||
getLastUpdateTime: () => number; | ||
getSerialNumber: () => string; | ||
getIPAddress: () => Promise<string> | ||
getMACAddress: () => Promise<string> | ||
getPhoneNumber: () => string; | ||
getAPILevel: () => number; | ||
getCarrier: () => string; | ||
getTotalMemory: () => number; | ||
getMaxMemory: () => number; | ||
getTotalDiskCapacity: () => number; | ||
getFreeDiskStorage: () => number; | ||
getBatteryLevel: () => Promise<number> | ||
}; | ||
export default _default; |
{ | ||
"name": "react-native-device-info", | ||
"version": "0.22.4", | ||
"version": "0.22.5", | ||
"description": "Get device information using react-native", | ||
@@ -5,0 +5,0 @@ "main": "deviceinfo.js", |
@@ -192,4 +192,3 @@ # react-native-device-info | ||
```js | ||
var DeviceInfo = require('react-native-device-info'); | ||
// or import DeviceInfo from 'react-native-device-info'; | ||
import DeviceInfo from 'react-native-device-info'; | ||
``` | ||
@@ -196,0 +195,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
228
0
187707
902