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
hide pin to notifications on ios
ammarahm-ed0fc9e909a0af
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.jsindex f8a672eaa..17ba5b171 100644--- a/apps/mobile/src/components/NoteItem/index.js+++ b/apps/mobile/src/components/NoteItem/index.js@@ -1,4 +1,5 @@import React from 'react';+import {Platform} from 'react-native';import {View} from 'react-native';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {useTracked} from '../../provider';@@ -51,6 +52,7 @@ function navigateToTag(item) {const showActionSheet = (item, isTrash) => {let note = isTrash ? item : db.notes.note(item?.id)?.data;+ let android = Platform.OS === 'android' ? ['PinToNotif'] : [];ActionSheetEvent(note ? note : item,isTrash ? false : true,@@ -65,10 +67,10 @@ const showActionSheet = (item, isTrash) => {'Publish','Pin','Favorite',- 'PinToNotif','Vault','Delete','RemoveTopic',+ ...android,],);};diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.jsindex 23e5e8d74..0638fc6bf 100644--- a/apps/mobile/src/views/Editor/EditorHeader.js+++ b/apps/mobile/src/views/Editor/EditorHeader.js@@ -159,6 +159,8 @@ const EditorHeader = () => {await sleep(500);editing.isFocused = true;}++ let android = Platform.OS === 'android' ? ['PinToNotif'] : [];ActionSheetEvent(note, true, true, ['Add to notebook','Share',@@ -170,6 +172,7 @@ const EditorHeader = () => {'Pin','Favorite','Publish',+ ...android,]);};