Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-device-info
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-device-info
Commits
df8db334
Commit
df8db334
authored
Oct 06, 2017
by
Gant Laborde
Committed by
GitHub
Oct 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #241 from jkimbo/add-flow-types
Add flow types
parents
dbbe53f2
957ae2da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
deviceinfo.d.ts
deviceinfo.d.ts
+3
-0
deviceinfo.js.flow
deviceinfo.js.flow
+31
-0
No files found.
CHANGELOG.md
View file @
df8db334
...
...
@@ -13,6 +13,7 @@
-
Add android only
`getAPILevel`
method (https://github.com/rebeccahughes/react-native-device-info/pull/232)
-
Add Android support for serial number, IP, and MAC address (https://github.com/rebeccahughes/react-native-device-info/pull/150)
-
Add tvOS support (https://github.com/rebeccahughes/react-native-device-info/pull/235)
-
Add flow types
[
Diff
](
https://github.com/rebeccahughes/react-native-device-info/compare/1aafc6f0b20d7cd6f0939ea5370e9899e4914c93...master
)
...
...
deviceinfo.d.ts
View file @
df8db334
...
...
@@ -23,3 +23,6 @@ export function isTablet(): 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
>
;
deviceinfo.js.flow
0 → 100644
View file @
df8db334
// @flow
declare module.exports: {
getUniqueID: () => string,
getManufacturer: () => string,
getBrand: () => string,
getModel: () => string,
getDeviceId: () => string,
getSystemName: () => string,
getSystemVersion: () => string,
getBundleId: () => string,
getBuildNumber: () => string,
getVersion: () => string,
getReadableVersion: () => string,
getDeviceName: () => string,
getUserAgent: () => string,
getDeviceLocale: () => string,
getDeviceCountry: () => string,
getTimezone: () => string,
isEmulator: () => boolean,
isTablet: () => boolean,
isPinOrFingerprintSet: () => (cb: (isPinOrFingerprintSet: boolean) => void) => void,
getAPILevel: () => number,
getInstanceID: () => string,
getPhoneNumber: () => ?string,
getFirstInstallTime: () => number,
getLastUpdateTime: () => number,
getSerialNumber: () => string,
getIPAddress: () => Promise<string>,
getMACAddress: () => Promise<string>,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment