https://github.com/rebeccahughes/react-native-device-info
Tip revision: 1c54310a538e0e12e465f6225d4b3fac4296aa34 authored by Mehdi Achour on 06 February 2019, 09:08:06 UTC
v0.26.2
v0.26.2
Tip revision: 1c54310
deviceinfo.js.flow
// @flow
export type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Unknown';
declare module.exports: {
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,
hasNotch: () => boolean,
getFirstInstallTime: () => number,
getLastUpdateTime: () => number,
getSerialNumber: () => string,
getAPILevel: () => number,
getIPAddress: () => Promise<string>,
getMACAddress: () => Promise<string>,
getPhoneNumber: () => ?string,
getCarrier: () => string,
getTotalMemory: () => number,
getMaxMemory: () => number,
getTotalDiskCapacity: () => number,
getFreeDiskStorage: () => number,
getBatteryLevel: () => Promise<number>,
isLandscape: () => boolean,
isAirPlaneMode: () => Promise<boolean>,
getDeviceType: () => DeviceType,
};