@tryvital/vital-core-react-native 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1 +1 @@
1
- todo
1
+ MIT
package/README.md CHANGED
@@ -1,31 +1,14 @@
1
1
  # vital-core-react-native
2
2
 
3
- todo
3
+ The core react native for Vital. This allows developers to easily make requests and interact with Vital's API.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```sh
8
8
  npm install vital-core-react-native
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import { multiply } from 'vital-core-react-native';
9
+ cd ios && pod install
15
10
 
16
- // ...
17
-
18
- const result = await multiply(3, 7);
19
11
  ```
12
+ ## Getting Started
20
13
 
21
- ## Contributing
22
-
23
- See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
24
-
25
- ## License
26
-
27
- MIT
28
-
29
- ---
30
-
31
- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
14
+ Please refer to our guide to get started - https://docs.tryvital.io/wearables/sdks/react_native
package/lib/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export declare class VitalCore {
2
+ static setUserId(userId: string): Promise<void>;
3
+ static configure(apiKey: string, environment: string, region: string, enableLogs: boolean): Promise<void>;
4
+ static cleanUp(): Promise<void>;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-core-react-native",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "test",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -25,6 +25,8 @@
25
25
  "!**/.*"
26
26
  ],
27
27
  "scripts": {
28
+ "np": "np --no-publish",
29
+ "postversion": "react-native-version",
28
30
  "test": "jest",
29
31
  "typescript": "tsc --declaration",
30
32
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
@@ -62,11 +64,13 @@
62
64
  "eslint-config-prettier": "^8.5.0",
63
65
  "eslint-plugin-prettier": "^4.0.0",
64
66
  "jest": "^28.1.1",
67
+ "np": "^7.6.2",
65
68
  "pod-install": "^0.1.0",
66
69
  "prettier": "^2.0.5",
67
70
  "react": "18.1.0",
68
71
  "react-native": "0.70.6",
69
72
  "react-native-builder-bob": "^0.20.2",
73
+ "react-native-version": "^4.0.0",
70
74
  "release-it": "^15.0.0",
71
75
  "typescript": "^4.5.2"
72
76
  },