Skip to content

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

mobile: fix ios monthly reminder patch

ammarahm-ed54d65beae3f7
diff --git a/apps/mobile/patches/@notifee+react-native+7.1.0.patch b/apps/mobile/patches/@notifee+react-native+7.1.0.patch
index 281c76a74..c1fadcad7 100644
--- a/apps/mobile/patches/@notifee+react-native+7.1.0.patch
+++ b/apps/mobile/patches/@notifee+react-native+7.1.0.patch
@@ -1,3 +1,15 @@
+diff --git a/node_modules/@notifee/react-native/dist/NotifeeApiModule.js b/node_modules/@notifee/react-native/dist/NotifeeApiModule.js
+index f9f151a..d31b0d1 100644
+--- a/node_modules/@notifee/react-native/dist/NotifeeApiModule.js
++++ b/node_modules/@notifee/react-native/dist/NotifeeApiModule.js
+@@ -275,6 +275,7 @@ class NotifeeApiModule extends NotifeeNativeModule_1.default {
+ return Promise.resolve();
+ };
+ createTriggerNotification = (notification, trigger) => {
++
+ let options;
+ let triggerOptions;
+ try {
diff --git a/node_modules/@notifee/react-native/dist/types/Trigger.d.ts b/node_modules/@notifee/react-native/dist/types/Trigger.d.ts
index 9907278..89d2116 100644
--- a/node_modules/@notifee/react-native/dist/types/Trigger.d.ts
@@ -12,6 +24,18 @@ index 9907278..89d2116 100644
}
/**
* Interface for building a trigger that repeats at a specified interval.
+diff --git a/node_modules/@notifee/react-native/dist/types/Trigger.js b/node_modules/@notifee/react-native/dist/types/Trigger.js
+index 6fe5153..0043d15 100644
+--- a/node_modules/@notifee/react-native/dist/types/Trigger.js
++++ b/node_modules/@notifee/react-native/dist/types/Trigger.js
+@@ -12,6 +12,7 @@ var RepeatFrequency;
+ RepeatFrequency[RepeatFrequency["HOURLY"] = 0] = "HOURLY";
+ RepeatFrequency[RepeatFrequency["DAILY"] = 1] = "DAILY";
+ RepeatFrequency[RepeatFrequency["WEEKLY"] = 2] = "WEEKLY";
++ RepeatFrequency[RepeatFrequency["MONTHLY"] = 3] = "MONTHLY";
+ })(RepeatFrequency = exports.RepeatFrequency || (exports.RepeatFrequency = {}));
+ /**
+ * An interface representing the different units of time which can be used with `IntervalTrigger.timeUnit`.
diff --git a/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCoreUtil.h b/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCoreUtil.h
index 9ae89e3..ecc7afa 100644
--- a/node_modules/@notifee/react-native/ios/NotifeeCore/NotifeeCoreUtil.h