https://github.com/rebeccahughes/react-native-device-info
Raw File
Tip revision: 805fe1d3e0671678dc7adb9ea2ea927e0fb7af7f authored by Mehdi Achour on 17 March 2018, 10:20:58 UTC
v0.21.1
Tip revision: 805fe1d
deviceinfo.d.ts
// should be imported this way:
// import * as 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>;
back to top