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
mobile: hide sound settings on ios
ammarahm-ed525828d6e011
diff --git a/apps/mobile/app/screens/settings/settings-data.tsx b/apps/mobile/app/screens/settings/settings-data.tsxindex e8c0d38f6..46a6c971e 100644--- a/apps/mobile/app/screens/settings/settings-data.tsx+++ b/apps/mobile/app/screens/settings/settings-data.tsx@@ -821,7 +821,6 @@ export const settingsGroups: SettingSection[] = [{id: "productivity",name: "Productivity",- hidden: () => Platform.OS !== "android",sections: [{id: "notification-notes",@@ -841,7 +840,8 @@ export const settingsGroups: SettingSection[] = [SettingsService.set({notifNotes: !settings.notifNotes});- }+ },+ hidden: () => Platform.OS !== "android"},{id: "reminders",@@ -890,7 +890,9 @@ export const settingsGroups: SettingSection[] = ["Set the notification sound for reminder notifications",component: "sound-picker",icon: "bell-ring",- hidden: () => Platform.OS === "android" && Platform.Version > 25+ hidden: () =>+ Platform.OS === "ios" ||+ (Platform.OS === "android" && Platform.Version > 25)},{id: "reminder-sound",diff --git a/apps/mobile/app/screens/settings/sound-picker.tsx b/apps/mobile/app/screens/settings/sound-picker.tsxindex ec9173c5a..7ff4039c7 100644--- a/apps/mobile/app/screens/settings/sound-picker.tsx+++ b/apps/mobile/app/screens/settings/sound-picker.tsx@@ -32,6 +32,7 @@ import SettingsService from "../../services/settings";import { useSettingStore } from "../../stores/use-setting-store";import { useThemeStore } from "../../stores/use-theme-store";import { SIZE } from "../../utils/size";+import notifee from "@notifee/react-native";const SoundItem = ({playingSoundId,@@ -48,7 +49,6 @@ const SoundItem = ({}) => {const colors = useThemeStore((state) => state.colors);const isPlaying = playingSoundId === item.soundID;-return (<PressableButtoncustomStyle={{@@ -128,17 +128,6 @@ export default function SoundPicker() {);useEffect(() => {- NotificationSounds.getNotifications("notification").then((results) =>- setSounds([- {- soundID: "defaultSound",- title: "Default sound",- url: ""- },- ...results- ])- );-NotificationSounds.getNotifications("ringtone").then((results) =>setRingtones([{@@ -149,6 +138,9 @@ export default function SoundPicker() {...results]));+ NotificationSounds.getNotifications("notification").then((results) =>+ setSounds([...results])+ );}, []);return (