From 516c9e21438d2c83f98e3c29fc892a2003f7aabd Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 2 Jul 2024 15:36:52 -0700 Subject: [PATCH] convert some things --- .../ios/ExpoBackgroundNotificationHandlerModule.swift | 5 ----- .../src/BackgroundNotificationHandlerProvider.tsx | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift b/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift index 443a1f9347..47913134a6 100644 --- a/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift +++ b/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift @@ -37,11 +37,6 @@ public class ExpoBackgroundNotificationHandlerModule: Module { } } - AsyncFunction("getPrefsAsync") { - let keys = Array(DEFAULTS.keys) - return SharedPrefs.shared.getValues(keys) - } - AsyncFunction("resetGenericCountAsync") { SharedPrefs.shared.setValue(BadgeType.generic.toKeyName(), 0) } diff --git a/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx b/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx index b943e24a0b..35cd506062 100644 --- a/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx +++ b/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx @@ -46,7 +46,7 @@ export function BackgroundNotificationPreferencesProvider({ k: Key, v: BackgroundNotificationHandlerPreferences[Key], ) => { - SharedPrefs.setValueAsync(k, v) + SharedPrefs.setValue(k, v) setPreferences(prev => ({ ...prev, [k]: v,