From b7b3f797edee4acda025614a11b237b1cd0680fe Mon Sep 17 00:00:00 2001 From: camarm-dev Date: Sat, 26 Oct 2024 16:55:19 +0200 Subject: [PATCH] fix: using module type --- src/background/Notifications.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/background/Notifications.ts b/src/background/Notifications.ts index a117b06a1..e53372e6a 100644 --- a/src/background/Notifications.ts +++ b/src/background/Notifications.ts @@ -1,4 +1,5 @@ import { expoGoWrapper } from "@/utils/native/expoGoAlert"; +import {Notification} from "@notifee/react-native/src/types/Notification"; const requestNotificationPermission = async () => { return expoGoWrapper(async () => { @@ -7,12 +8,7 @@ const requestNotificationPermission = async () => { }, true); }; -interface papillonNotifyProps { - title: string - [key: string]: any -} - -const papillonNotify = async (props: papillonNotifyProps) => { +const papillonNotify = async (props: Notification) => { expoGoWrapper(async () => { const notifee = (await import("@notifee/react-native")).default; await notifee.displayNotification({