@walletconnect/react-native-compat 2.8.1-canary-1 → 2.8.1-d072eaa1

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.
Files changed (2) hide show
  1. package/index.js +9 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -17,3 +17,12 @@ if (typeof global?.Linking === "undefined") {
17
17
  console.error("react-native-compat: react-native.Linking is not available");
18
18
  }
19
19
  }
20
+
21
+ if (typeof global?.Platform === "undefined") {
22
+ try {
23
+ global.Platform = require("react-native").Platform;
24
+ } catch (e) {
25
+ // eslint-disable-next-line no-console
26
+ console.error("react-native-compat: react-native.Platform is not available");
27
+ }
28
+ }
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.8.1-canary-1",
4
+ "version": "2.8.1-d072eaa1",
5
5
  "author": "WalletConnect, Inc. <walletconnect.com>",
6
6
  "homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
7
7
  "license": "Apache-2.0",