Unverified Commit 51d14de1 authored by Mehdi Achour's avatar Mehdi Achour Committed by GitHub

chore: add prettier and reformat files (#309)

parent cbbbb159
{
"useTabs": false,
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"jsxBracketSameLine": false,
"bracketSpacing": true
}
......@@ -176,7 +176,7 @@ include ':app'
## Usage
```js
var DeviceInfo = require("react-native-device-info");
var DeviceInfo = require('react-native-device-info');
// or import DeviceInfo from 'react-native-device-info';
```
......
// should be imported this way:
// should be imported this way:
// import * as DeviceInfo from 'react-native-device-info';
export function getUniqueID(): string;
......@@ -22,7 +22,9 @@ export function getInstanceID(): string;
export function isEmulator(): boolean;
export function isTablet(): boolean;
export function is24Hour(): boolean;
export function isPinOrFingerprintSet(): (cb: (isPinOrFingerprintSet: boolean) => void) => void;
export function isPinOrFingerprintSet(): (
cb: (isPinOrFingerprintSet: boolean) => void
) => void;
export function getFirstInstallTime(): number;
export function getLastUpdateTime(): number;
export function getSerialNumber(): string;
......
......@@ -80,7 +80,7 @@ module.exports = {
is24Hour: function() {
return RNDeviceInfo.is24Hour;
},
isPinOrFingerprintSet: function () {
isPinOrFingerprintSet: function() {
return RNDeviceInfo.isPinOrFingerprintSet;
},
getFirstInstallTime: function() {
......
......@@ -22,7 +22,9 @@ declare module.exports: {
isEmulator: () => boolean,
isTablet: () => boolean,
is24Hour: () => boolean,
isPinOrFingerprintSet: () => (cb: (isPinOrFingerprintSet: boolean) => void) => void,
isPinOrFingerprintSet: () => (
cb: (isPinOrFingerprintSet: boolean) => void
) => void,
getFirstInstallTime: () => number,
getLastUpdateTime: () => number,
getSerialNumber: () => string,
......@@ -35,4 +37,4 @@ declare module.exports: {
getMaxMemory: () => number,
getTotalDiskCapacity: () => number,
getFreeDiskStorage: () => number,
}
};
......@@ -31,6 +31,7 @@
],
"license": "MIT",
"devDependencies": {
"np": "^2.16.0"
"np": "^2.16.0",
"prettier": "^1.10.2"
}
}
......@@ -844,6 +844,10 @@ prepend-http@^1.0.1:
version "1.0.4"
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
prettier@^1.10.2:
version "1.10.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.10.2.tgz#1af8356d1842276a99a5b5529c82dd9e9ad3cc93"
pseudomap@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment