@applicaster/zapp-react-native-bridge 14.0.0-rc.4 → 14.0.0-rc.41
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.
|
@@ -7,7 +7,7 @@ interface PushBridgeInterface {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line prefer-promise-reject-errors
|
|
10
|
-
const nullPromise = () => Promise.
|
|
10
|
+
const nullPromise = () => Promise.resolve(["Push Notification bridge is null"]);
|
|
11
11
|
|
|
12
12
|
const defaultPushNotification = {
|
|
13
13
|
registerTags: nullPromise,
|
package/QuickBrick/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as R from "ramda";
|
|
2
|
-
import { Platform } from "react-native";
|
|
3
2
|
import uuidv4 from "uuid/v4";
|
|
4
3
|
|
|
5
4
|
import { bridgeLogger } from "../logger";
|
|
@@ -27,7 +26,7 @@ export interface QuickBrickCommunicationModuleI extends AppData {
|
|
|
27
26
|
) => void;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
const { NativeModules } = require("react-native");
|
|
29
|
+
const { NativeModules, Platform } = require("react-native");
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
32
|
* sends an event to the native QuickBrick manager module
|
|
@@ -32,7 +32,7 @@ function getLocalStorageAndroid(): NativeLocalStorageI {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const LocalStorage = platformSelect({
|
|
35
|
+
const LocalStorage: NativeLocalStorageI = platformSelect({
|
|
36
36
|
android: getLocalStorageAndroid(),
|
|
37
37
|
amazon: getLocalStorageAndroid(),
|
|
38
38
|
android_tv: getLocalStorageAndroid(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-bridge",
|
|
3
|
-
"version": "14.0.0-rc.
|
|
3
|
+
"version": "14.0.0-rc.41",
|
|
4
4
|
"description": "Applicaster Zapp React Native modules",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@applicaster/zapp-pipes-dev-kit": "1.4.7",
|
|
35
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-rc.
|
|
35
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-rc.41",
|
|
36
36
|
"md5": "^2.3.0",
|
|
37
37
|
"uuid": "^3.3.2"
|
|
38
38
|
},
|