Update React Native dependencies and add support for React Native 0.75 (#4527)
This commit is contained in:
@@ -28,16 +28,15 @@
|
||||
"src/*"
|
||||
],
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-lambda": "3.577.0",
|
||||
"@aws-sdk/credential-providers": "3.577.0",
|
||||
"@aws-sdk/client-lambda": "3.592.0",
|
||||
"@aws-sdk/credential-providers": "3.592.0",
|
||||
"@mobile-wallet-protocol/client": "0.0.2",
|
||||
"@walletconnect/react-native-compat": "2.13.2",
|
||||
"aws-amplify": "5.3.18"
|
||||
"aws-amplify": "5.3.19"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@coinbase/wallet-mobile-sdk": "^1",
|
||||
"@react-native-async-storage/async-storage": "^1",
|
||||
"@react-native-clipboard/clipboard": "^1",
|
||||
"@react-native-async-storage/async-storage": "^1 || ^2",
|
||||
"@react-native-community/netinfo": "^11",
|
||||
"amazon-cognito-identity-js": "^6",
|
||||
"expo-application": "^5",
|
||||
@@ -48,7 +47,6 @@
|
||||
"react-native-get-random-values": "^1",
|
||||
"react-native-quick-crypto": ">=0.7.0-rc.6 || >=0.7",
|
||||
"react-native-svg": "^15",
|
||||
"shamir-secret-sharing": "^0.0.3",
|
||||
"typescript": ">=5.0.4"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
||||
@@ -191,8 +191,7 @@
|
||||
"@aws-sdk/credential-providers": "^3",
|
||||
"@coinbase/wallet-mobile-sdk": "^1",
|
||||
"@mobile-wallet-protocol/client": "^0.0.2",
|
||||
"@react-native-async-storage/async-storage": "^1",
|
||||
"@react-native-clipboard/clipboard": "*",
|
||||
"@react-native-async-storage/async-storage": "^1 || ^2",
|
||||
"amazon-cognito-identity-js": "^6",
|
||||
"aws-amplify": "^5",
|
||||
"ethers": "^5 || ^6",
|
||||
@@ -251,9 +250,6 @@
|
||||
"@react-native-async-storage/async-storage": {
|
||||
"optional": true
|
||||
},
|
||||
"@react-native-clipboard/clipboard": {
|
||||
"optional": true
|
||||
},
|
||||
"@coinbase/wallet-mobile-sdk": {
|
||||
"optional": true
|
||||
},
|
||||
@@ -294,14 +290,13 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-lambda": "3.577.0",
|
||||
"@aws-sdk/credential-providers": "3.577.0",
|
||||
"@aws-sdk/client-lambda": "3.592.0",
|
||||
"@aws-sdk/credential-providers": "3.592.0",
|
||||
"@chromatic-com/storybook": "^1.5.0",
|
||||
"@codspeed/vitest-plugin": "3.1.1",
|
||||
"@coinbase/wallet-mobile-sdk": "1.0.13",
|
||||
"@mobile-wallet-protocol/client": "0.0.2",
|
||||
"@react-native-async-storage/async-storage": "^1.23.1",
|
||||
"@react-native-clipboard/clipboard": "1.14.1",
|
||||
"@react-native-async-storage/async-storage": "1.24.0",
|
||||
"@storybook/addon-essentials": "^8.2.9",
|
||||
"@storybook/addon-interactions": "^8.2.9",
|
||||
"@storybook/addon-links": "^8.2.9",
|
||||
@@ -318,7 +313,7 @@
|
||||
"@vitejs/plugin-react": "^4.3.1",
|
||||
"@vitest/ui": "2.0.5",
|
||||
"amazon-cognito-identity-js": "6.3.12",
|
||||
"aws-amplify": "5.3.18",
|
||||
"aws-amplify": "5.3.19",
|
||||
"cross-spawn": "7.0.3",
|
||||
"ethers5": "npm:[email protected]",
|
||||
"ethers6": "npm:[email protected]",
|
||||
@@ -326,7 +321,7 @@
|
||||
"expo-web-browser": "13.0.3",
|
||||
"happy-dom": "^14.12.0",
|
||||
"msw": "2.4.4",
|
||||
"react-native": "0.74.5",
|
||||
"react-native": "0.75.2",
|
||||
"react-native-aes-gcm-crypto": "0.2.2",
|
||||
"react-native-passkey": "3.0.0-beta2",
|
||||
"react-native-quick-crypto": "0.7.0-rc.6",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import Clipboard from "@react-native-clipboard/clipboard";
|
||||
import { useState } from "react";
|
||||
import { StyleSheet, TouchableOpacity } from "react-native";
|
||||
import { Clipboard, StyleSheet, TouchableOpacity } from "react-native";
|
||||
import type { Account } from "../../../../wallets/interfaces/wallet.js";
|
||||
import type { Theme } from "../../../core/design-system/index.js";
|
||||
import { spacing } from "../../design-system/index.js";
|
||||
@@ -20,7 +19,6 @@ export const Address = ({ account, theme, addressOrENS }: AddressProps) => {
|
||||
<TouchableOpacity
|
||||
style={styles.addressContainer}
|
||||
onPress={() => {
|
||||
// @ts-ignore - missing native types
|
||||
Clipboard.setString(account.address);
|
||||
setCopySuccess(true);
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user