A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix copy note not working
ammarahm-edd68b5a1654cb
diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.jsindex 5a5be4eb3..c7d3af088 100644--- a/apps/mobile/src/components/SelectionWrapper/index.js+++ b/apps/mobile/src/components/SelectionWrapper/index.js@@ -1,10 +1,10 @@import React, {useEffect, useState} from 'react';-import {TouchableOpacity, View} from 'react-native';+import {TouchableOpacity, View,Clipboard} from 'react-native';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {useTracked} from '../../provider';import {Actions} from '../../provider/Actions';import {eSendEvent, openVault, ToastEvent} from '../../services/EventManager';-import {dWidth, getElevation} from '../../utils';+import {dWidth, getElevation, toTXT} from '../../utils';import {hexToRGBA} from '../../utils/ColorUtils';import {db} from '../../utils/DB';import {refreshNotesPage} from '../../utils/Events';@@ -187,8 +187,8 @@ const ActionStrip = ({note, setActionStrip}) => {item: note,});} else {- let text = await db.notes.note(note.id).content();- text = toTXT(text);+ let delta = await db.notes.note(note.id).content();+ let text = toTXT(delta);text = `${note.title}\n \n ${text}`;Clipboard.setString(text);ToastEvent.show('Note copied to clipboard', 'success');