@tryvital/vital-core-react-native 0.2.6 → 0.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-core-react-native",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "test",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -33,8 +33,7 @@
33
33
  "release": "release-it",
34
34
  "example": "yarn --cwd example",
35
35
  "bootstrap": "yarn example && yarn install && yarn example pods",
36
- "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
37
- "postinstall": "npm run typescript"
36
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
38
37
  },
39
38
  "keywords": [
40
39
  "react-native",
package/lib/index.d.ts DELETED
@@ -1,5 +0,0 @@
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/lib/index.js DELETED
@@ -1,23 +0,0 @@
1
- import { NativeModules, Platform } from 'react-native';
2
- const LINKING_ERROR = `The package 'vital-core-react-native' doesn't seem to be linked. Make sure: \n\n` +
3
- Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
4
- '- You rebuilt the app after installing the package\n' +
5
- '- You are not using Expo Go\n';
6
- const VitalCoreReactNative = NativeModules.VitalCoreReactNative
7
- ? NativeModules.VitalCoreReactNative
8
- : new Proxy({}, {
9
- get() {
10
- throw new Error(LINKING_ERROR);
11
- },
12
- });
13
- export class VitalCore {
14
- static setUserId(userId) {
15
- return VitalCoreReactNative.setUserId(userId);
16
- }
17
- static configure(apiKey, environment, region, enableLogs) {
18
- return VitalCoreReactNative.configure(apiKey, environment, region, enableLogs);
19
- }
20
- static cleanUp() {
21
- return VitalCoreReactNative.cleanUp();
22
- }
23
- }