Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-device-info

Package Overview
Dependencies
Maintainers
5
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-device-info - npm Package Compare versions

Comparing version 0.22.4 to 0.22.5

5

CHANGELOG.md
## 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 @@

82

deviceinfo.d.ts
// 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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc