Skip to content

Commit 9762ede

Browse files
committed
version 2.3.0
1 parent 7954690 commit 9762ede

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,17 @@ For iOS:
7575
For Android:
7676
- systemName
7777
- systemVersion
78-
- applicatioName
78+
- applicationName
7979
- applicationVersion
8080
- buildNumber
8181

8282
## Versioning
8383

8484
**Breaking History:**
85+
- [2.3.0](https://github.com/bebnev/react-native-user-agent/releases/tag/v2.3.0)
86+
- unification for ios device names
87+
- fix android gradle script
88+
- add types definition
8589
- [2.1.0](https://github.com/bebnev/react-native-user-agent/releases/tag/v2.1.0) - support for tvos
8690
- [2.0.0](https://github.com/bebnev/react-native-user-agent/releases/tag/v2.0.0) - supports [autolinking](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md), native code refactoring, removes UIWebView, `getWebViewUserAgent()` returns promise
8791
- [1.0.6](https://github.com/bebnev/react-native-user-agent/releases/tag/v1.0.6) - First release

index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export function getUserAgent(): string;
2+
export function getWebViewUserAgent(): Promise<string>;
3+
4+
// Android + iOS
5+
export const systemName: string;
6+
export const systemVersion: string;
7+
export const applicationName: string;
8+
export const applicationVersion: string;
9+
export const buildNumber: string;
10+
11+
// iOS only
12+
export const darwinVersion: string|undefined;
13+
export const cfnetworkVersion: string|undefined;
14+
export const modelName: string|undefined;
15+
16+
/**
17+
* @deprecated
18+
*/
19+
export const deviceName: string|undefined;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "react-native-user-agent",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "Library that helps you to get mobile application user agent and web view user agent strings.",
55
"main": "index.js",
6+
"types": "index.d.ts",
67
"repository": {
78
"type": "git",
89
"url": "https://github.com/bebnev/react-native-user-agent.git"

0 commit comments

Comments
 (0)