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: add reminder sheet
ammarahm-ed30cad32e263c
diff --git a/apps/mobile/app/components/sheets/reminder/index.tsx b/apps/mobile/app/components/sheets/reminder/index.tsxnew file mode 100644index 000000000..39c55a240--- /dev/null+++ b/apps/mobile/app/components/sheets/reminder/index.tsx@@ -0,0 +1,406 @@+/*+This file is part of the Notesnook project (https://notesnook.com/)++Copyright (C) 2022 Streetwriters (Private) Limited++This program is free software: you can redistribute it and/or modify+it under the terms of the GNU General Public License as published by+the Free Software Foundation, either version 3 of the License, or+(at your option) any later version.++This program is distributed in the hope that it will be useful,+but WITHOUT ANY WARRANTY; without even the implied warranty of+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+GNU General Public License for more details.++You should have received a copy of the GNU General Public License+along with this program. If not, see <http://www.gnu.org/licenses/>.+*/+import React, { RefObject, useRef, useState } from "react";+import { ScrollView, View } from "react-native";+import ActionSheet from "react-native-actions-sheet";+import DateTimePickerModal from "react-native-modal-datetime-picker";+import {+ presentSheet,+ PresentSheetOptions+} from "../../../services/event-manager";+import { useThemeStore } from "../../../stores/use-theme-store";+import { SIZE } from "../../../utils/size";+import DialogHeader from "../../dialog/dialog-header";+import { Button } from "../../ui/button";+import Input from "../../ui/input";++import Notifications, { Reminder } from "../../../services/notifications";+import { Notice } from "../../ui/notice";+import Paragraph from "../../ui/typography/paragraph";++import notifee, {+ AndroidStyle,+ RepeatFrequency,+ Trigger,+ TriggerType+} from "@notifee/react-native";+type ReminderSheetProps = {+ actionSheetRef: RefObject<ActionSheet>;+ close?: () => void;+ update?: (options: PresentSheetOptions) => void;+ reminder?: Reminder;+};++const ReminderModes = {+ Once: "once",+ Recurring: "recurring",+ Permanent: "permanent"+};++const RecurringModes = {+ Weekly: "weekly",+ Monthly: "monthly"+};++const WeekDays = new Array(7).fill(true);+const MonthDays = new Array(31).fill(true);+const WeekDayNames = {+ 0: "Sunday",+ 1: "Monday",+ 2: "Tuesday",+ 3: "Wednesday",+ 4: "Thursday",+ 5: "Friday",+ 6: "Saturday"+};++const ReminderNotificationModes = {+ Silent: "silent",+ Vibrate: "vibrate",+ Urgent: "urgent"+};++export default function ReminderSheet({+ actionSheetRef,+ close,+ update,+ reminder+}: ReminderSheetProps) {+ const colors = useThemeStore((state) => state.colors);+ const [reminderMode, setReminderMode] = useState(ReminderModes.Once);+ const [recurringMode, setRecurringMode] = useState(RecurringModes.Weekly);+ const [selectedDays, setSelectedDays] = useState<number[]>([]);+ const [date, setDate] = useState<Date>();+ const [time, setTime] = useState<string>();+ const [reminderNotificationMode, setReminderNotificatioMode] = useState(+ ReminderNotificationModes.Silent+ );+ const [isDatePickerVisible, setDatePickerVisibility] = useState(false);+ const [isTimePickerVisible, setTimePickerVisibility] = useState(false);+ const title = useRef<string>();+ const details = useRef<string>();++ const showDatePicker = () => {+ setDatePickerVisibility(true);+ };++ const showTimePicker = () => {+ setTimePickerVisibility(true);+ };++ const hideDatePicker = () => {+ setDatePickerVisibility(false);+ setTimePickerVisibility(false);+ };++ const handleConfirm = (date: Date) => {+ setTime(new Date(date).toLocaleTimeString());+ setDate(date);+ hideDatePicker();+ };++ return (+ <View+ style={{+ paddingHorizontal: 12+ }}+ >+ <Input+ defaultValue={reminder?.title}+ placeholder="Remind me of..."+ onChangeText={(text) => (title.current = text)}+ containerStyle={{ borderWidth: 0, borderBottomWidth: 1 }}+ />++ <Input+ defaultValue={reminder?.details}+ placeholder="Add a quick note"+ onChangeText={(text) => (details.current = text)}+ containerStyle={{ borderWidth: 0, borderBottomWidth: 1 }}+ />++ <View+ style={{+ flexDirection: "row",+ marginBottom: 12+ }}+ >+ {Object.keys(ReminderModes).map((mode) => (+ <Button+ key={mode}+ title={mode}+ style={{+ marginRight: 12,+ borderRadius: 100,+ minWidth: 70+ }}+ height={35}+ type={+ reminderMode === ReminderModes[mode as keyof typeof ReminderModes]+ ? "grayAccent"+ : "gray"+ }+ onPress={() => {+ setReminderMode(+ ReminderModes[mode as keyof typeof ReminderModes]+ );+ }}+ />+ ))}+ </View>++ {reminderMode === ReminderModes.Recurring ? (+ <View+ style={{+ backgroundColor: colors.nav,+ padding: 12,+ borderRadius: 5,+ marginBottom: 12+ }}+ >+ <View+ style={{+ flexDirection: "row",+ marginBottom: 12+ }}+ >+ {Object.keys(RecurringModes).map((mode) => (+ <Button+ key={mode}+ title={mode}+ style={{+ marginRight: 12,+ borderRadius: 100+ }}+ height={35}+ type={+ recurringMode ===+ RecurringModes[mode as keyof typeof RecurringModes]+ ? "accent"+ : "gray"+ }+ onPress={() => {+ setRecurringMode(+ RecurringModes[mode as keyof typeof RecurringModes]+ );+ setSelectedDays([]);+ }}+ />+ ))}+ </View>++ <ScrollView horizontal>+ {recurringMode === RecurringModes.Weekly+ ? WeekDays.map((item, index) => (+ <Button+ key={WeekDayNames[index as keyof typeof WeekDayNames]}+ title={WeekDayNames[+ index as keyof typeof WeekDayNames+ ].slice(0, 3)}+ type={selectedDays.indexOf(index) > -1 ? "shade" : "gray"}+ fontSize={SIZE.sm - 1}+ style={{+ width: 65,+ borderRadius: 100,+ marginRight: 10+ }}+ onPress={() => {+ setSelectedDays((days) => {+ if (days.indexOf(index) > -1) {+ days.splice(days.indexOf(index), 1);+ return [...days];+ }+ days.push(index);+ return [...days];+ });+ }}+ />+ ))+ : MonthDays.map((item, index) => (+ <Button+ key={index + "monthday"}+ title={index + 1 + ""}+ type={selectedDays.indexOf(index) > -1 ? "shade" : "gray"}+ fontSize={SIZE.sm - 1}+ style={{+ width: 50,+ borderRadius: 100,+ marginRight: 10+ }}+ onPress={() => {+ setSelectedDays((days) => {+ if (days.indexOf(index) > -1) {+ days.splice(days.indexOf(index), 1);+ return [...days];+ }+ days.push(index);+ return [...days];+ });+ }}+ />+ ))}+ </ScrollView>+ </View>+ ) : null}++ {reminderMode === ReminderModes.Permanent ? null : (+ <View+ style={{+ width: "100%",+ flexDirection: "row",+ justifyContent: "space-between",+ marginBottom: 12+ }}+ >+ <DateTimePickerModal+ isVisible={isDatePickerVisible}+ mode="datetime"+ onConfirm={handleConfirm}+ onCancel={hideDatePicker}+ date={date || new Date(Date.now())}+ />++ <DateTimePickerModal+ isVisible={isTimePickerVisible}+ mode="time"+ onConfirm={handleConfirm}+ onCancel={hideDatePicker}+ date={date || new Date(Date.now())}+ timePickerModeAndroid="spinner"+ />++ <Button+ style={{+ width: "48.5%"+ }}+ title={date ? date.toLocaleDateString() : "Select date"}+ type={date ? "grayAccent" : "grayBg"}+ icon="calendar"+ onPress={() => {+ showDatePicker();+ }}+ />++ <Button+ style={{+ width: "48.5%"+ }}+ title={time || "Select time"}+ type={time ? "grayAccent" : "grayBg"}+ icon="clock"+ onPress={() => {+ showTimePicker();+ }}+ />+ </View>+ )}++ {reminderMode === ReminderModes.Permanent ? null : (+ <View+ style={{+ flexDirection: "row",+ marginBottom: 12+ }}+ >+ {Object.keys(ReminderNotificationModes).map((mode) => (+ <Button+ key={mode}+ title={mode}+ style={{+ marginRight: 12,+ borderRadius: 100+ }}+ icon={+ mode === "Silent"+ ? "minus-circle"+ : mode === "Vibrate"+ ? "vibrate"+ : "volume-high"+ }+ height={35}+ type={+ reminderNotificationMode ===+ ReminderNotificationModes[+ mode as keyof typeof ReminderNotificationModes+ ]+ ? "grayAccent"+ : "gray"+ }+ onPress={() => {+ setReminderNotificatioMode(+ ReminderNotificationModes[+ mode as keyof typeof ReminderNotificationModes+ ]+ );+ }}+ />+ ))}+ </View>+ )}++ <Paragraph+ style={{+ color: colors.icon,+ fontSize: SIZE.xs,+ paddingVertical: 12+ }}+ >+ Permanent reminders are pinned at top of your notifications permanentaly+ until they are removed from the app.+ </Paragraph>++ <Button+ style={{+ width: "100%"+ }}+ title="Save"+ type="accent"+ onPress={async () => {+ if (!(await Notifications.checkAndRequestPermissions())) return;+ if (!date || !title.current) return;+ Notifications.scheduleNotification({+ id: "test_1",+ date: date,+ dateCreated: Date.now(),+ dateModified: Date.now(),+ priority: reminderNotificationMode as any,+ title: title.current,+ details: details.current,+ recurringMode: recurringMode as any,+ selectedDays: selectedDays,+ type: reminderMode as any+ });+ }}+ />+ </View>+ );+}++ReminderSheet.present = (reminder: Reminder) => {+ presentSheet({+ component: (ref, close, update) => (+ <ReminderSheet+ actionSheetRef={ref}+ close={close}+ update={update}+ reminder={reminder}+ />+ )+ });+};diff --git a/apps/mobile/app/package.json b/apps/mobile/app/package.jsonindex fbc064420..8695ecbc1 100644--- a/apps/mobile/app/package.json+++ b/apps/mobile/app/package.json@@ -27,6 +27,7 @@"validator": "^13.5.2","zustand": "^3.6.0","fflate": "^0.7.3"+},"sideEffects": false}diff --git a/apps/mobile/app/screens/home/index.tsx b/apps/mobile/app/screens/home/index.tsxindex 61737fb35..b5bc82184 100755--- a/apps/mobile/app/screens/home/index.tsx+++ b/apps/mobile/app/screens/home/index.tsx@@ -22,6 +22,7 @@ import { db } from "../../common/database";import { FloatingButton } from "../../components/container/floating-button";import DelayLayout from "../../components/delay-layout";import List from "../../components/list";+import ReminderSheet from "../../components/sheets/reminder";import { useNavigationFocus } from "../../hooks/use-navigation-focus";import Navigation, { NavigationProps } from "../../services/navigation";import SearchService from "../../services/search";@@ -79,7 +80,9 @@ export const Home = ({ navigation, route }: NavigationProps<"Notes">) => {placeholderData={PLACEHOLDER_DATA}/>- <FloatingButton title="Create a new note" onPress={openEditor} />+ <FloatingButton title="Create a new note" onPress={() => {+ ReminderSheet.present();+ }} /></DelayLayout>);};diff --git a/apps/mobile/app/services/event-manager.ts b/apps/mobile/app/services/event-manager.tsindex 6090aaa57..5b6e5f87e 100644--- a/apps/mobile/app/services/event-manager.ts+++ b/apps/mobile/app/services/event-manager.ts@@ -95,7 +95,11 @@ export type PresentSheetOptions = {context: string;component:| JSX.Element- | ((ref: RefObject<ActionSheet>, close?: () => void) => JSX.Element);+ | ((+ ref: RefObject<ActionSheet>,+ close?: () => void,+ update?: (props: PresentSheetOptions) => void+ ) => JSX.Element);disableClosing: boolean;onClose: () => void;progress: boolean;diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.tsindex 861f620e6..40f57fda3 100644--- a/apps/mobile/app/services/notifications.ts+++ b/apps/mobile/app/services/notifications.ts@@ -17,7 +17,16 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/+import notifee, {+ AndroidStyle,+ RepeatFrequency,+ Trigger,+ TriggerType,+ AuthorizationStatus+} from "@notifee/react-native";+import dayjs from "dayjs";import { Platform } from "react-native";+import DeviceInfo from "react-native-device-info";import PushNotification, {Importance,PushNotificationDeliveredObject,@@ -25,19 +34,232 @@ import PushNotification, {} from "react-native-push-notification";import { db } from "../common/database";import { MMKV } from "../common/database/mmkv";+import { editorState } from "../screens/editor/tiptap/utils";+import { useNoteStore } from "../stores/use-notes-store";import { eOnLoadNote } from "../utils/events";import { tabBarRef } from "../utils/global-refs";-import { useNoteStore } from "../stores/use-notes-store";import { DDS } from "./device-detection";import { eSendEvent } from "./event-manager";import SettingsService from "./settings";-import { editorState } from "../screens/editor/tiptap/utils";-import DeviceInfo from "react-native-device-info";const NOTIFICATION_TAG = "notesnook";const CHANNEL_ID = "com.streetwriters.notesnook";let pinned: PushNotificationDeliveredObject[] = [];+async function getChannelId(id: "silent" | "vibrate" | "urgent" | "default") {+ switch (id) {+ case "default":+ return await notifee.createChannel({+ id: "com.streetwriters.notesnook",+ name: "Default"+ });+ case "silent":+ return await notifee.createChannel({+ id: "com.streetwriters.notesnook.silent",+ name: "Silent",+ vibration: false+ });+ case "vibrate":+ return await notifee.createChannel({+ id: "com.streetwriters.notesnook.silent",+ name: "Silent",+ vibration: true+ });+ case "urgent":+ return await notifee.createChannel({+ id: "com.streetwriters.notesnook.urgent",+ name: "Urgent",+ vibration: true,+ sound: "default"+ });+ }+}++export type Reminder = {+ id: string;+ title: string;+ details?: string;+ priority: "silent" | "vibrate" | "urgent";+ date: Date;+ type: "recurring" | "once" | "permanent";+ recurringMode: "weekly" | "monthly" | "daily";+ selectedDays: number[];+ dateCreated: number;+ dateModified: number;+};++async function checkAndRequestPermissions() {+ let permissionStatus = await notifee.getNotificationSettings();+ if (Platform.OS === "android") {+ if (+ permissionStatus.authorizationStatus === AuthorizationStatus.AUTHORIZED &&+ permissionStatus.android.alarm === 1+ )+ return true;+ if (permissionStatus.authorizationStatus === AuthorizationStatus.DENIED) {+ permissionStatus = await notifee.requestPermission();+ }+ if (permissionStatus.android.alarm !== 1) {+ await notifee.openAlarmPermissionSettings();+ }+ permissionStatus = await notifee.getNotificationSettings();+ if (+ permissionStatus.authorizationStatus === AuthorizationStatus.AUTHORIZED &&+ permissionStatus.android.alarm === 1+ )+ return true;+ return false;+ }+}++function getTriggers(+ reminder: Reminder+): (Trigger & { id: string })[] | undefined {+ const { date, recurringMode, selectedDays, type } = reminder;+ switch (type) {+ case "once":+ return [+ {+ timestamp: date?.getTime() as number,+ type: TriggerType.TIMESTAMP,+ id: reminder.id,+ alarmManager: {+ allowWhileIdle: true+ }+ }+ ];+ case "permanent":+ return undefined;+ case "recurring": {+ switch (recurringMode) {+ case "daily":+ return [+ {+ timestamp: date?.getTime() as number,+ type: TriggerType.TIMESTAMP,+ repeatFrequency: RepeatFrequency.DAILY,+ id: reminder.id,+ alarmManager: {+ allowWhileIdle: true+ }+ }+ ];+ case "weekly":+ return selectedDays.length === 7+ ? [+ {+ timestamp: date.getTime() as number,+ type: TriggerType.TIMESTAMP,+ repeatFrequency: RepeatFrequency.DAILY,+ id: reminder.id,+ alarmManager: {+ allowWhileIdle: true+ }+ }+ ]+ : selectedDays.map((day) => ({+ timestamp: dayjs(date).day(day).toDate().getTime() as number,+ type: TriggerType.TIMESTAMP,+ repeatFrequency: RepeatFrequency.WEEKLY,+ id: `${reminder.id}_${day}`,+ alarmManager: {+ allowWhileIdle: true+ }+ }));+ case "monthly":+ return selectedDays.length === 31+ ? [+ {+ timestamp: date?.getTime() as number,+ type: TriggerType.TIMESTAMP,+ repeatFrequency: RepeatFrequency.DAILY,+ id: reminder.id,+ alarmManager: {+ allowWhileIdle: true+ }+ }+ ]+ : selectedDays.map((day) => ({+ timestamp: dayjs(date).date(day).toDate().getTime() as number,+ type: TriggerType.TIMESTAMP,+ repeatFrequency: RepeatFrequency.WEEKLY,+ id: `${reminder.id}_${day}`,+ alarmManager: {+ allowWhileIdle: true+ }+ }));+ }++ break;+ }+ }+}++async function removeScheduledNotification(reminder: Reminder, day: number) {+ return notifee.cancelTriggerNotification(+ day ? `${reminder.id}_${day}` : reminder.id+ );+}++async function getScheduledNotificationIds() {+ return notifee.getTriggerNotificationIds();+}++async function clearAllPendingTriggersForId(_id: string) {+ const ids = await getScheduledNotificationIds();+ for (const id of ids) {+ if (id.startsWith(_id)) {+ await notifee.cancelTriggerNotification(id);+ }+ }+}++async function scheduleNotification(reminder: Reminder) {+ try {+ const { title, details, priority } = reminder;+ const triggers = getTriggers(reminder);+ if (!triggers && reminder.type === "permanent") {+ present({+ tag: reminder.id,+ title: title,+ message: details || "",+ ongoing: true,+ subtitle: details || ""+ });+ return;+ }+ await clearAllPendingTriggersForId(reminder.id);+ if (!triggers) return;+ for (const trigger of triggers) {+ console.log(trigger);+ await notifee.createTriggerNotification(+ {+ id: trigger.id,+ title: title,+ body: details,+ android: {+ channelId: await getChannelId(priority),+ smallIcon: "ic_stat_name",+ pressAction: {+ id: "default",+ mainComponent: "callofwriting"+ },+ style: !details+ ? undefined+ : {+ type: AndroidStyle.BIGTEXT,+ text: details+ }+ }+ },+ trigger+ );+ }+ } catch (e) {+ console.log(e);+ }+}+function loadNote(id: string, jump: boolean) {if (!id || id === "notesnook_note_input") return;const note = db.notes?.note(id).data;@@ -260,7 +482,11 @@ const Notifications = {get,getPinnedNotes,pinQuickNote,- unpinQuickNote+ unpinQuickNote,+ scheduleNotification,+ removeScheduledNotification,+ getScheduledNotificationIds,+ checkAndRequestPermissions};export default Notifications;diff --git a/apps/mobile/native/package.json b/apps/mobile/native/package.jsonindex b503edf2b..5f30a900e 100644--- a/apps/mobile/native/package.json+++ b/apps/mobile/native/package.json@@ -53,7 +53,11 @@"rn-extensions-share": "^2.4.0","rn-fetch-blob": "^0.12.0","react-native-gzip":"1.0.0",- "@shopify/flash-list":"1.4.0"+ "@shopify/flash-list":"1.4.0",+ "@notifee/react-native": "7.1.0",+ "react-native-modal-datetime-picker":"14.0.0",+ "@react-native-community/datetimepicker":"6.6.0"+},"devDependencies": {"@babel/core": "^7.12.9",diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.jsonindex 5d62cff19..9ac663c69 100644--- a/apps/mobile/package-lock.json+++ b/apps/mobile/package-lock.json@@ -60,8 +60,10 @@"dependencies": {"@ammarahmed/react-native-sodium": "1.2.0","@callstack/repack": "^3.0.0",+ "@notifee/react-native": "7.1.0","@react-native-clipboard/clipboard": "^1.9.0","@react-native-community/checkbox": "^0.5.8",+ "@react-native-community/datetimepicker": "6.6.0","@react-native-community/netinfo": "^6.0.4","@react-native-community/push-notification-ios": "^1.10.1","@react-native-community/toolbar-android": "^0.2.1",@@ -92,6 +94,7 @@"react-native-image-picker": "4.1.2","react-native-keychain": "4.0.5","react-native-mmkv-storage": "^0.8.0",+ "react-native-modal-datetime-picker": "14.0.0","react-native-orientation": "https://github.com/yamill/react-native-orientation.git","react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git","react-native-push-notification": "github:ammarahm-ed/react-native-push-notification",@@ -3991,6 +3994,14 @@"resolved": "native","link": true},+ "node_modules/@notifee/react-native": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/@notifee/react-native/-/react-native-7.1.0.tgz",+ "integrity": "sha512-FmYplZ1Bxua2q8u+W3RmVx85R32DWeMQGfzvu8O9w7bZQwMtvmQROjfyMSIOMVCQw6fSA7zmMaikC+W4LjLMHQ==",+ "peerDependencies": {+ "react-native": "*"+ }+ },"node_modules/@pmmmwh/react-refresh-webpack-plugin": {"version": "0.5.8","resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.8.tgz",@@ -5182,6 +5193,14 @@"node": ">=8"}},+ "node_modules/@react-native-community/datetimepicker": {+ "version": "6.6.0",+ "resolved": "https://registry.npmjs.org/@react-native-community/datetimepicker/-/datetimepicker-6.6.0.tgz",+ "integrity": "sha512-h6LuOfTFdspnClBHWSQ3kJ6GFKN+NWhplSBF5USh957cqJd2euoMDrXBnGW2HL74k/+D3sbZNlF3Th2PTqnAmg==",+ "dependencies": {+ "invariant": "^2.2.4"+ }+ },"node_modules/@react-native-community/eslint-config": {"version": "2.0.0","resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz",@@ -18325,6 +18344,18 @@"react-native": "*"}},+ "node_modules/react-native-modal-datetime-picker": {+ "version": "14.0.0",+ "resolved": "https://registry.npmjs.org/react-native-modal-datetime-picker/-/react-native-modal-datetime-picker-14.0.0.tgz",+ "integrity": "sha512-orI0BMgX9uooSZWYIILmMaZXqi8Ebr0vqsLUFL03zORpv9NvkBlLMQ8dZVdDxWUc1Lbx/N5DJskC16AOypPy8Q==",+ "dependencies": {+ "prop-types": "^15.7.2"+ },+ "peerDependencies": {+ "@react-native-community/datetimepicker": ">=3.0.0",+ "react-native": ">=0.65.0"+ }+ },"node_modules/react-native-orientation": {"version": "3.1.3","resolved": "git+ssh://[email protected]/yamill/react-native-orientation.git#b45830cce0837fa668838554e023979497673c82",@@ -24217,8 +24248,10 @@"@babel/preset-env": "^7.18.6","@babel/runtime": "^7.12.5","@callstack/repack": "^3.0.0",+ "@notifee/react-native": "7.1.0","@react-native-clipboard/clipboard": "^1.9.0","@react-native-community/checkbox": "^0.5.8",+ "@react-native-community/datetimepicker": "6.6.0","@react-native-community/eslint-config": "^2.0.0","@react-native-community/netinfo": "^6.0.4","@react-native-community/push-notification-ios": "^1.10.1",@@ -24278,6 +24311,7 @@"react-native-image-picker": "4.1.2","react-native-keychain": "4.0.5","react-native-mmkv-storage": "^0.8.0",+ "react-native-modal-datetime-picker": "14.0.0","react-native-orientation": "https://github.com/yamill/react-native-orientation.git","react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git","react-native-push-notification": "github:ammarahm-ed/react-native-push-notification",@@ -24299,6 +24333,11 @@"webpack": "^5.74.0"}},+ "@notifee/react-native": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/@notifee/react-native/-/react-native-7.1.0.tgz",+ "integrity": "sha512-FmYplZ1Bxua2q8u+W3RmVx85R32DWeMQGfzvu8O9w7bZQwMtvmQROjfyMSIOMVCQw6fSA7zmMaikC+W4LjLMHQ=="+ },"@pmmmwh/react-refresh-webpack-plugin": {"version": "0.5.8","resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.8.tgz",@@ -25160,6 +25199,14 @@"joi": "^17.2.1"}},+ "@react-native-community/datetimepicker": {+ "version": "6.6.0",+ "resolved": "https://registry.npmjs.org/@react-native-community/datetimepicker/-/datetimepicker-6.6.0.tgz",+ "integrity": "sha512-h6LuOfTFdspnClBHWSQ3kJ6GFKN+NWhplSBF5USh957cqJd2euoMDrXBnGW2HL74k/+D3sbZNlF3Th2PTqnAmg==",+ "requires": {+ "invariant": "^2.2.4"+ }+ },"@react-native-community/eslint-config": {"version": "2.0.0","resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz",@@ -34981,6 +35028,14 @@"resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.8.0.tgz","integrity": "sha512-L782Le5IuDYlDLGXF/qimbnzvkbYsSmV5PiDleo1DSS8Kr8Q31UK8YWtUICrDGQ9Fm7Xx4PxP9ffe2XzGeWaHQ=="},+ "react-native-modal-datetime-picker": {+ "version": "14.0.0",+ "resolved": "https://registry.npmjs.org/react-native-modal-datetime-picker/-/react-native-modal-datetime-picker-14.0.0.tgz",+ "integrity": "sha512-orI0BMgX9uooSZWYIILmMaZXqi8Ebr0vqsLUFL03zORpv9NvkBlLMQ8dZVdDxWUc1Lbx/N5DJskC16AOypPy8Q==",+ "requires": {+ "prop-types": "^15.7.2"+ }+ },"react-native-orientation": {"version": "git+ssh://[email protected]/yamill/react-native-orientation.git#b45830cce0837fa668838554e023979497673c82","from": "react-native-orientation@https://github.com/yamill/react-native-orientation.git"