@icanbwell/types 1.6.0 → 1.7.0
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 +4 -3
- package/src/native-bridge.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icanbwell/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"typedoc": {
|
|
5
5
|
"entryPoint": "./src/index.ts",
|
|
6
6
|
"tsconfig": "./tsconfig.lib.json"
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"import": "./index.js"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"repoVersion": "3.
|
|
40
|
-
"description": "@icanbwell/types. repo version: 3.
|
|
39
|
+
"repoVersion": "3.20.0",
|
|
40
|
+
"description": "@icanbwell/types. repo version: 3.20.0",
|
|
41
41
|
"module": "./index.js",
|
|
42
42
|
"main": "./index.js",
|
|
43
43
|
"type": "module",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@react-native-camera-roll/camera-roll": "5.7.1",
|
|
48
48
|
"@react-native-community/geolocation": "3.0.6",
|
|
49
49
|
"apollo-link-rest": "0.9.0",
|
|
50
|
+
"react-native": "0.71.2",
|
|
50
51
|
"react-native-biometrics": "3.0.1",
|
|
51
52
|
"react-native-document-picker": "9.0.1",
|
|
52
53
|
"react-native-fs": "2.20.0",
|
package/src/native-bridge.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type TypedEmitter from 'typed-emitter';
|
|
|
3
3
|
import type { OnAuthSuccessEventKey, OnAuthSuccessEventData, ErrorEventKey, ErrorEventData } from './native-components';
|
|
4
4
|
import { openSettings, PermissionStatus } from 'react-native-permissions';
|
|
5
5
|
import { PageTransitionEventKey, PageTransitionEventPayload } from '.';
|
|
6
|
+
import { Platform } from 'react-native';
|
|
6
7
|
export type NativeEvents<T = any> = {
|
|
7
8
|
openwebview: (url: string) => void;
|
|
8
9
|
closewebview: (data: T) => void;
|
|
@@ -126,6 +127,9 @@ export interface IPushNotifications {
|
|
|
126
127
|
requestPermission(): Promise<GlobalPermissionStatus>;
|
|
127
128
|
checkPermission(): Promise<GlobalPermissionStatus>;
|
|
128
129
|
}
|
|
130
|
+
export interface IUtils {
|
|
131
|
+
getPlatform(): typeof Platform.OS;
|
|
132
|
+
}
|
|
129
133
|
export interface ISystem {
|
|
130
134
|
openSettings: typeof openSettings;
|
|
131
135
|
}
|
|
@@ -151,6 +155,7 @@ export interface INativeBridge {
|
|
|
151
155
|
pushNotifications: IPushNotifications;
|
|
152
156
|
system: ISystem;
|
|
153
157
|
deepLink: IDeepLink;
|
|
158
|
+
utils: IUtils;
|
|
154
159
|
reloadView(): void;
|
|
155
160
|
}
|
|
156
161
|
export type GlobalPermissionStatus = PermissionStatus | PermissionState;
|