mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at verify-code 1.0 kB view raw
1import { 2 BackgroundNotificationHandlerPreferences, 3 ExpoBackgroundNotificationHandlerModule, 4} from './ExpoBackgroundNotificationHandler.types' 5 6// Stub for web 7export const BackgroundNotificationHandler = { 8 getAllPrefsAsync: async () => { 9 return {} as BackgroundNotificationHandlerPreferences 10 }, 11 getBoolAsync: async (_: string) => { 12 return false 13 }, 14 getStringAsync: async (_: string) => { 15 return '' 16 }, 17 getStringArrayAsync: async (_: string) => { 18 return [] 19 }, 20 setBoolAsync: async (_: string, __: boolean) => {}, 21 setStringAsync: async (_: string, __: string) => {}, 22 setStringArrayAsync: async (_: string, __: string[]) => {}, 23 addToStringArrayAsync: async (_: string, __: string) => {}, 24 removeFromStringArrayAsync: async (_: string, __: string) => {}, 25 addManyToStringArrayAsync: async (_: string, __: string[]) => {}, 26 removeManyFromStringArrayAsync: async (_: string, __: string[]) => {}, 27 setBadgeCountAsync: async (_: number) => {}, 28} as ExpoBackgroundNotificationHandlerModule