Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

use react-native-clipboard for copying data

ammarahm-ed61f483a41e02
diff --git a/apps/mobile/src/components/PublishNoteDialog/index.js b/apps/mobile/src/components/PublishNoteDialog/index.js
index 8e6bd924f..66a232b8c 100644
--- a/apps/mobile/src/components/PublishNoteDialog/index.js
+++ b/apps/mobile/src/components/PublishNoteDialog/index.js
@@ -1,11 +1,11 @@
import React, {useEffect, useRef, useState} from 'react';
import {
ActivityIndicator,
- Clipboard,
TouchableOpacity,
View,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
+import Clipboard from "@react-native-clipboard/clipboard"
import {useTracked} from '../../provider';
import {
eSubscribeEvent,
diff --git a/apps/mobile/src/components/RecoveryKeyDialog/index.js b/apps/mobile/src/components/RecoveryKeyDialog/index.js
index 93efae94d..36863bb86 100644
--- a/apps/mobile/src/components/RecoveryKeyDialog/index.js
+++ b/apps/mobile/src/components/RecoveryKeyDialog/index.js
@@ -1,8 +1,9 @@
import React, {createRef} from 'react';
-import {Clipboard, Platform, View} from 'react-native';
+import {Platform, View} from 'react-native';
import QRCode from 'react-native-qrcode-svg';
import Share from 'react-native-share';
import {LOGO_BASE64} from '../../assets/images/assets';
+import Clipboard from "@react-native-clipboard/clipboard"
import {
eSendEvent,
eSubscribeEvent,
diff --git a/apps/mobile/src/components/SelectionWrapper/actionstrip.js b/apps/mobile/src/components/SelectionWrapper/actionstrip.js
index 793ec7a3e..8e4c3edc7 100644
--- a/apps/mobile/src/components/SelectionWrapper/actionstrip.js
+++ b/apps/mobile/src/components/SelectionWrapper/actionstrip.js
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react';
-import { Clipboard, View } from 'react-native';
+import {View } from 'react-native';
+import Clipboard from "@react-native-clipboard/clipboard"
import Animated, { useValue } from 'react-native-reanimated';
import { useTracked } from '../../provider';
import {
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index 266289129..45a5acff1 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -4,8 +4,8 @@ import {
InteractionManager,
TouchableOpacity,
View,
- Clipboard,
} from 'react-native';
+import Clipboard from "@react-native-clipboard/clipboard"
import Share from 'react-native-share';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {notesnook} from '../../../e2e/test.ids';