From 17b1a5da70ec4a48d7d79cd987710762a98a9a8f Mon Sep 17 00:00:00 2001 From: Ray Lin <137183702+ruijialin-avalabs@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:12:03 -0400 Subject: [PATCH] CP-8888: disable reduce motion for bottom-sheet component (#1425) --- packages/core-mobile/ios/Podfile.lock | 4 +- packages/core-mobile/package.json | 16 ++-- yarn.lock | 118 +++++++++++++++----------- 3 files changed, 77 insertions(+), 61 deletions(-) diff --git a/packages/core-mobile/ios/Podfile.lock b/packages/core-mobile/ios/Podfile.lock index 5821b67e2..d0565b6fe 100644 --- a/packages/core-mobile/ios/Podfile.lock +++ b/packages/core-mobile/ios/Podfile.lock @@ -1192,7 +1192,7 @@ PODS: - React-Core - RNReactNativeHapticFeedback (2.0.3): - React-Core - - RNReanimated (3.8.0): + - RNReanimated (3.14.0): - glog - RCT-Folly (= 2022.05.16.00) - React-Core @@ -1657,7 +1657,7 @@ SPEC CHECKSUMS: RNOS: 6f2f9a70895bbbfbdad7196abd952e7b01d45027 RNPermissions: de7b7c3fe1680d974ac7a85e3e97aa539c0e68ea RNReactNativeHapticFeedback: afa5bf2794aecbb2dba2525329253da0d66656df - RNReanimated: 00ee495a70897aa9d541e76debec14253133b812 + RNReanimated: f1ce27e7d23e6f941024b862ad76a7fdae93dea9 RNScreens: 17e2f657f1b09a71ec3c821368a04acbb7ebcb46 RNSensors: e74c8bd9606400c1048ab67af7f41eb2091cb2fc RNSentry: 0aefd4f23b45e3c00577c3a18af79b8f8193bcdb diff --git a/packages/core-mobile/package.json b/packages/core-mobile/package.json index 609a42477..948b30fa5 100644 --- a/packages/core-mobile/package.json +++ b/packages/core-mobile/package.json @@ -47,7 +47,7 @@ "@datadog/mobile-react-navigation": "2.2.0", "@ethereumjs/common": "2.6.5", "@ethereumjs/tx": "3.4.0", - "@gorhom/bottom-sheet": "4.4.5", + "@gorhom/bottom-sheet": "4.6.3", "@hookform/resolvers": "2.6.0", "@invertase/react-native-apple-authentication": "2.3.0", "@lavamoat/preinstall-always-fail": "1.0.0", @@ -64,12 +64,12 @@ "@react-native-community/slider": "4.4.2", "@react-native-google-signin/google-signin": "10.1.0", "@react-native-menu/menu": "0.9.1", - "@react-navigation/bottom-tabs": "6.5.18", - "@react-navigation/drawer": "6.6.13", - "@react-navigation/elements": "1.3.28", - "@react-navigation/native": "6.1.15", - "@react-navigation/native-stack": "6.9.24", - "@react-navigation/stack": "6.3.27", + "@react-navigation/bottom-tabs": "6.6.1", + "@react-navigation/drawer": "6.7.2", + "@react-navigation/elements": "1.3.31", + "@react-navigation/native": "6.1.18", + "@react-navigation/native-stack": "6.10.1", + "@react-navigation/stack": "6.4.1", "@reduxjs/toolkit": "1.8.1", "@sentry/react-native": "5.24.1", "@shopify/flash-list": "1.6.3", @@ -151,7 +151,7 @@ "react-native-qrcode-svg": "6.1.2", "react-native-quick-base64": "2.0.8", "react-native-quick-crypto": "0.6.1", - "react-native-reanimated": "3.8.0", + "react-native-reanimated": "3.14.0", "react-native-redash": "18.1.3", "react-native-restart": "0.0.24", "react-native-root-siblings": "5.0.1", diff --git a/yarn.lock b/yarn.lock index bc31eb6a7..86a6807a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -162,7 +162,7 @@ __metadata: "@dlenroc/testrail": 1.7.2 "@ethereumjs/common": 2.6.5 "@ethereumjs/tx": 3.4.0 - "@gorhom/bottom-sheet": 4.4.5 + "@gorhom/bottom-sheet": 4.6.3 "@hookform/resolvers": 2.6.0 "@invertase/react-native-apple-authentication": 2.3.0 "@lavamoat/allow-scripts": 2.0.3 @@ -183,12 +183,12 @@ __metadata: "@react-native-menu/menu": 0.9.1 "@react-native/babel-preset": 0.73.21 "@react-native/metro-config": 0.73.5 - "@react-navigation/bottom-tabs": 6.5.18 - "@react-navigation/drawer": 6.6.13 - "@react-navigation/elements": 1.3.28 - "@react-navigation/native": 6.1.15 - "@react-navigation/native-stack": 6.9.24 - "@react-navigation/stack": 6.3.27 + "@react-navigation/bottom-tabs": 6.6.1 + "@react-navigation/drawer": 6.7.2 + "@react-navigation/elements": 1.3.31 + "@react-navigation/native": 6.1.18 + "@react-navigation/native-stack": 6.10.1 + "@react-navigation/stack": 6.4.1 "@reduxjs/toolkit": 1.8.1 "@rushstack/eslint-patch": 1.5.1 "@sentry/react-native": 5.24.1 @@ -306,7 +306,7 @@ __metadata: react-native-qrcode-svg: 6.1.2 react-native-quick-base64: 2.0.8 react-native-quick-crypto: 0.6.1 - react-native-reanimated: 3.8.0 + react-native-reanimated: 3.14.0 react-native-redash: 18.1.3 react-native-restart: 0.0.24 react-native-root-siblings: 5.0.1 @@ -3541,18 +3541,25 @@ __metadata: languageName: node linkType: hard -"@gorhom/bottom-sheet@npm:4.4.5": - version: 4.4.5 - resolution: "@gorhom/bottom-sheet@npm:4.4.5" +"@gorhom/bottom-sheet@npm:4.6.3": + version: 4.6.3 + resolution: "@gorhom/bottom-sheet@npm:4.6.3" dependencies: "@gorhom/portal": 1.0.14 invariant: ^2.2.4 peerDependencies: + "@types/react": "*" + "@types/react-native": "*" react: "*" react-native: "*" react-native-gesture-handler: ">=1.10.1" react-native-reanimated: ">=2.2.0" - checksum: 19b3efeaacdd0eddb3f6c6e6c225dd20fcf21fae9d20f760c94e81b7ecba47a56737cb0e681225c368c93779beebe7a61102e064656a376eeb7761366b9874d6 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-native": + optional: true + checksum: 718c55a89b0e18581eae6080d1d21caabf4895088e01f0dfe17b5891835a110d7aee1d0cb1b9e623efc16b598fdb28c2ec929e0ed74bfbca283306191d8a5c41 languageName: node linkType: hard @@ -6368,11 +6375,11 @@ __metadata: languageName: node linkType: hard -"@react-navigation/bottom-tabs@npm:6.5.18": - version: 6.5.18 - resolution: "@react-navigation/bottom-tabs@npm:6.5.18" +"@react-navigation/bottom-tabs@npm:6.6.1": + version: 6.6.1 + resolution: "@react-navigation/bottom-tabs@npm:6.6.1" dependencies: - "@react-navigation/elements": ^1.3.28 + "@react-navigation/elements": ^1.3.31 color: ^4.2.3 warn-once: ^0.1.0 peerDependencies: @@ -6381,31 +6388,31 @@ __metadata: react-native: "*" react-native-safe-area-context: ">= 3.0.0" react-native-screens: ">= 3.0.0" - checksum: 6b5f52456e05a278d039f98552f0b340e8d5935ad7ad69b30bebb2b5c5141516dc9778875f83c79c98da43e11e328edcca1a45dfb7dd6aaadcd92786381625ea + checksum: 07d6da4b91d7f372b67bcb9f1ff97fba96f1fe226bd95d43d7877362ce71d99c6eebe9ca41d84ea8828f055713386262e089a8207a6c849f33bae49b4df4b196 languageName: node linkType: hard -"@react-navigation/core@npm:^6.4.14": - version: 6.4.15 - resolution: "@react-navigation/core@npm:6.4.15" +"@react-navigation/core@npm:^6.4.17": + version: 6.4.17 + resolution: "@react-navigation/core@npm:6.4.17" dependencies: "@react-navigation/routers": ^6.1.9 escape-string-regexp: ^4.0.0 nanoid: ^3.1.23 query-string: ^7.1.3 react-is: ^16.13.0 - use-latest-callback: ^0.1.9 + use-latest-callback: ^0.2.1 peerDependencies: react: "*" - checksum: 5c108456fc601db8738e505928092a13864f2f8f871461184612b835c9e1499a224674c768291f1508f65dd1090c719883340ddc1ef713bef48ddf559872a56c + checksum: 5e7315bb6ebff8e796eaccb0442d00696466750cc387e93f5edb5293d4ad3f409c1525ef76192894488e2d0979b762b236a1b0fbbb7500b2f065bf4745d509c0 languageName: node linkType: hard -"@react-navigation/drawer@npm:6.6.13": - version: 6.6.13 - resolution: "@react-navigation/drawer@npm:6.6.13" +"@react-navigation/drawer@npm:6.7.2": + version: 6.7.2 + resolution: "@react-navigation/drawer@npm:6.7.2" dependencies: - "@react-navigation/elements": ^1.3.28 + "@react-navigation/elements": ^1.3.31 color: ^4.2.3 warn-once: ^0.1.0 peerDependencies: @@ -6416,27 +6423,27 @@ __metadata: react-native-reanimated: ">= 1.0.0" react-native-safe-area-context: ">= 3.0.0" react-native-screens: ">= 3.0.0" - checksum: 9d868161885086526210d87873bde3afee9ce902525f06af50aa646c9fba04f096728d5f5ef7eed5cf47c79a49e3e317976c1c82971098404508a43172a46219 + checksum: 6c5b0b118dad5a94141804a1685497464cd9a03cfa426888a8b4027a12898ba3b853fba9bd327cfb8733ffbb94546d612fdcf69fe1eb1bc45a46e14d77aaec82 languageName: node linkType: hard -"@react-navigation/elements@npm:1.3.28, @react-navigation/elements@npm:^1.3.28": - version: 1.3.28 - resolution: "@react-navigation/elements@npm:1.3.28" +"@react-navigation/elements@npm:1.3.31, @react-navigation/elements@npm:^1.3.31": + version: 1.3.31 + resolution: "@react-navigation/elements@npm:1.3.31" peerDependencies: "@react-navigation/native": ^6.0.0 react: "*" react-native: "*" react-native-safe-area-context: ">= 3.0.0" - checksum: 3584b9a7f7216642081ea22c7c0bc6477a8bb73586aec1655032c32c0b0d27d1d3305c74c3e14824fcb69586298843502d576017586078009fb2888390aef697 + checksum: 1e4a65ccd9fab757d01bf41f605aafd6ca8301ae25ad7d3f1769320793418cca9fe2f25ac9337578ce1e0a1560bbbc3a88f18b899867aacd4d31de7a789e417e languageName: node linkType: hard -"@react-navigation/native-stack@npm:6.9.24": - version: 6.9.24 - resolution: "@react-navigation/native-stack@npm:6.9.24" +"@react-navigation/native-stack@npm:6.10.1": + version: 6.10.1 + resolution: "@react-navigation/native-stack@npm:6.10.1" dependencies: - "@react-navigation/elements": ^1.3.28 + "@react-navigation/elements": ^1.3.31 warn-once: ^0.1.0 peerDependencies: "@react-navigation/native": ^6.0.0 @@ -6444,22 +6451,22 @@ __metadata: react-native: "*" react-native-safe-area-context: ">= 3.0.0" react-native-screens: ">= 3.0.0" - checksum: 98e503055e631f9c125e0f0fafac3fb970beb949790d8fd663a9651c0258d99d672ced53b86ccf979a3d6df7b593b0c68506c1783ec493c78f00ea9ddf921f41 + checksum: be3c81351bf29eaf2c18b37014961afb02ae1931b50d7a66c6c55a3d522ee2a371b2f0f94e7a71f0b7f510ac6f24af91b3b5d5b511d74c9f3bd99e7f7d90f51f languageName: node linkType: hard -"@react-navigation/native@npm:6.1.15": - version: 6.1.15 - resolution: "@react-navigation/native@npm:6.1.15" +"@react-navigation/native@npm:6.1.18": + version: 6.1.18 + resolution: "@react-navigation/native@npm:6.1.18" dependencies: - "@react-navigation/core": ^6.4.14 + "@react-navigation/core": ^6.4.17 escape-string-regexp: ^4.0.0 fast-deep-equal: ^3.1.3 nanoid: ^3.1.23 peerDependencies: react: "*" react-native: "*" - checksum: d5a99c66def0be122ccfdc583c679a86f9aae6226a6e498623bfc514c05a385def1c7a715a9bcdb23a4c5c6b5c0a0d978566c689404e20d905cda576a383b43b + checksum: 82aeea67723f5dc41403e1c260f04942696f6cde95e30629c383521c3837d18d2d5c21bd78f0ade50beb81ac5edca2d7d38980dcd3a79e3acc86f45d0c09a4b8 languageName: node linkType: hard @@ -6472,11 +6479,11 @@ __metadata: languageName: node linkType: hard -"@react-navigation/stack@npm:6.3.27": - version: 6.3.27 - resolution: "@react-navigation/stack@npm:6.3.27" +"@react-navigation/stack@npm:6.4.1": + version: 6.4.1 + resolution: "@react-navigation/stack@npm:6.4.1" dependencies: - "@react-navigation/elements": ^1.3.28 + "@react-navigation/elements": ^1.3.31 color: ^4.2.3 warn-once: ^0.1.0 peerDependencies: @@ -6486,7 +6493,7 @@ __metadata: react-native-gesture-handler: ">= 1.0.0" react-native-safe-area-context: ">= 3.0.0" react-native-screens: ">= 3.0.0" - checksum: 4f863094d4ccc24d2168f9b679c7e0682256a5d874f1354ff1bb564abb07b71149f0a42d763f7480f47f8a7aab731970d79362ccf64df2d93f3df0dd9512de36 + checksum: 09bcfb001db0f411df881da9f2551b7015c4d5259a77fcb93196de308838035d016dc4dcb654d16d9cd4cc99f09f5e48add796aa903f9a253678947c35b18199 languageName: node linkType: hard @@ -21084,9 +21091,9 @@ __metadata: languageName: node linkType: hard -"react-native-reanimated@npm:3.8.0": - version: 3.8.0 - resolution: "react-native-reanimated@npm:3.8.0" +"react-native-reanimated@npm:3.14.0": + version: 3.14.0 + resolution: "react-native-reanimated@npm:3.14.0" dependencies: "@babel/plugin-transform-arrow-functions": ^7.0.0-0 "@babel/plugin-transform-nullish-coalescing-operator": ^7.0.0-0 @@ -21100,7 +21107,7 @@ __metadata: "@babel/core": ^7.0.0-0 react: "*" react-native: "*" - checksum: 21dbd21c9c722e97e3d7ebbfe09576882f2b8ee2c55e87764bcf1f1b13410193066df8b2598fede9fa583c0145e3269b82ab7fcc80ca0eff51012d21cac57837 + checksum: 31eb58d1c7fbd233ce789de2f63779f485f07708e0a4168866ab9dfce555e970079a84ca34eef9cfb06ee48cfa9e1b0e452407a7938c066393034c046642a855 languageName: node linkType: hard @@ -24379,7 +24386,7 @@ __metadata: languageName: node linkType: hard -"use-latest-callback@npm:^0.1.5, use-latest-callback@npm:^0.1.9": +"use-latest-callback@npm:^0.1.5": version: 0.1.9 resolution: "use-latest-callback@npm:0.1.9" peerDependencies: @@ -24388,6 +24395,15 @@ __metadata: languageName: node linkType: hard +"use-latest-callback@npm:^0.2.1": + version: 0.2.1 + resolution: "use-latest-callback@npm:0.2.1" + peerDependencies: + react: ">=16.8" + checksum: da5718eda625738cc7dac8fb502d0f8f2039435eb71203565a72c32e0f5769e7b8ddac074e650066636e7f4b29b45524f751cb18a2b430856d98879bbb10d274 + languageName: node + linkType: hard + "use-resize-observer@npm:^9.1.0": version: 9.1.0 resolution: "use-resize-observer@npm:9.1.0"