From a426fd97e4904a024a456728d7dc62abcd842357 Mon Sep 17 00:00:00 2001 From: amerllica Date: Mon, 16 Sep 2024 13:39:17 +0330 Subject: [PATCH] fix: use new package name for clipboard --- index.tsx | 2 +- package.json | 2 +- yarn.lock | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.tsx b/index.tsx index 6c56ef8..d5be08b 100644 --- a/index.tsx +++ b/index.tsx @@ -2,7 +2,7 @@ import { InputProps, OTPInputViewState } from '@twotalltotems/react-native-otp-input'; import React, { Component } from 'react' import { View, TextInput, TouchableWithoutFeedback, Keyboard, Platform, I18nManager, EmitterSubscription, } from 'react-native' -import Clipboard from '@react-native-community/clipboard'; +import Clipboard from '@react-native-clipboard/clipboard'; import styles from './styles' import { isAutoFillSupported } from './helpers/device' import { codeToArray } from './helpers/codeToArray' diff --git a/package.json b/package.json index 00fb01e..d6d4bfa 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,6 @@ "typescript": "^3.8.3" }, "dependencies": { - "@react-native-community/clipboard": "^1.2.2" + "@react-native-clipboard/clipboard": "^1.14.1" } } diff --git a/yarn.lock b/yarn.lock index f826a0c..5d80cc5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -959,6 +959,11 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" +"@react-native-clipboard/clipboard@^1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@react-native-clipboard/clipboard/-/clipboard-1.14.1.tgz#835f82fc86881a0808a8405f2576617bb5383554" + integrity sha512-SM3el0A28SwoeJljVNhF217o0nI4E7RfalLmuRQcT1/7tGcxUjgFa3jyrEndYUct8/uxxK5EUNGUu1YEDqzxqw== + "@react-native-community/cli-debugger-ui@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-3.0.0.tgz#d01d08d1e5ddc1633d82c7d84d48fff07bd39416"