From ff722218104033137dec2df532478180a8bdfec5 Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Sat, 20 Jul 2024 19:40:55 +0800 Subject: [PATCH] chore: remove @react-native-clipboard/clipboard dep --- package.json | 1 - pnpm-lock.yaml | 15 --------------- src/metro/common/index.ts | 2 +- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/package.json b/package.json index 19dc9aa..63d047b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ }, "license": "BSD-3-Clause", "devDependencies": { - "@react-native-clipboard/clipboard": "1.10.0", "@shopify/react-native-skia": "^1.3.8", "@swc/core": "^1.7.0", "@swc/helpers": "^0.5.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 12310b9..f23a248 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,9 +16,6 @@ dependencies: version: 1.4.4 devDependencies: - '@react-native-clipboard/clipboard': - specifier: 1.10.0 - version: 1.10.0 '@shopify/react-native-skia': specifier: ^1.3.8 version: 1.3.8 @@ -418,18 +415,6 @@ packages: fastq: 1.17.1 dev: true - /@react-native-clipboard/clipboard@1.10.0: - resolution: {integrity: sha512-1L+I0vmeUJgMi8MnNsqI00391/RFLkmmxj9qAuOS2madpvce/oNqJb8Pwk2Fc/uxIJSxOckTpq+dQwyPU6s+7w==} - peerDependencies: - react: '>=16.0' - react-native: '>=0.57.0' - peerDependenciesMeta: - react: - optional: true - react-native: - optional: true - dev: true - /@react-native/virtualized-lists@0.72.8: resolution: {integrity: sha512-J3Q4Bkuo99k7mu+jPS9gSUSgq+lLRSI/+ahXNwV92XgJ/8UgOTxu2LPwhJnBk/sQKxq7E8WkZBnBiozukQMqrw==} peerDependencies: diff --git a/src/metro/common/index.ts b/src/metro/common/index.ts index be6a0c8..55b5901 100644 --- a/src/metro/common/index.ts +++ b/src/metro/common/index.ts @@ -8,7 +8,7 @@ export const constants = findByPropsLazy("Fonts", "Permissions"); export const channels = findByPropsLazy("getVoiceChannelId"); export const i18n = findByPropsLazy("Messages"); export const url = findByPropsLazy("openURL", "openDeeplink"); -export const clipboard = findByPropsLazy("setString", "getString", "hasString") as typeof import("@react-native-clipboard/clipboard").default; +export const clipboard = findByPropsLazy("setString", "getString", "hasString"); export const assets = findByPropsLazy("registerAsset"); export const invites = findByPropsLazy("acceptInviteAndTransitionToInviteChannel"); export const commands = findByPropsLazy("getBuiltInCommands");