Skip to content

Commit

Permalink
fix: using module type
Browse files Browse the repository at this point in the history
  • Loading branch information
camarm-dev committed Oct 26, 2024
1 parent 2bf0e58 commit b7b3f79
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/background/Notifications.ts
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand All @@ -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({
Expand Down

0 comments on commit b7b3f79

Please sign in to comment.