@walletconnect/react-native-compat 2.7.3-canary-1 → 2.7.3-rc-a381c3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +7 -5
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* eslint-disable no-console */
|
2
1
|
// Polyfill TextEncode / TextDecode
|
3
2
|
import "fast-text-encoding";
|
4
3
|
|
@@ -10,8 +9,11 @@ if (typeof Buffer === "undefined") {
|
|
10
9
|
global.Buffer = require("buffer").Buffer;
|
11
10
|
}
|
12
11
|
|
13
|
-
if (typeof Linking === "undefined") {
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
if (typeof global?.Linking === "undefined") {
|
13
|
+
try {
|
14
|
+
global.Linking = require("react-native").Linking;
|
15
|
+
} catch (e) {
|
16
|
+
// eslint-disable-next-line no-console
|
17
|
+
console.error("react-native-compat: react-native.Linking is not available");
|
18
|
+
}
|
17
19
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@walletconnect/react-native-compat",
|
3
3
|
"description": "Shims for WalletConnect Protocol in React Native Projects",
|
4
|
-
"version": "2.7.3-
|
4
|
+
"version": "2.7.3-rc-a381c3",
|
5
5
|
"author": "WalletConnect, Inc. <walletconnect.com>",
|
6
6
|
"homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
|
7
7
|
"license": "Apache-2.0",
|