convert some things

This commit is contained in:
Hailey
2024-07-02 15:36:52 -07:00
parent cec1c3e5a2
commit 516c9e2143
2 changed files with 1 additions and 6 deletions
@@ -37,11 +37,6 @@ public class ExpoBackgroundNotificationHandlerModule: Module {
} }
} }
AsyncFunction("getPrefsAsync") {
let keys = Array(DEFAULTS.keys)
return SharedPrefs.shared.getValues(keys)
}
AsyncFunction("resetGenericCountAsync") { AsyncFunction("resetGenericCountAsync") {
SharedPrefs.shared.setValue(BadgeType.generic.toKeyName(), 0) SharedPrefs.shared.setValue(BadgeType.generic.toKeyName(), 0)
} }
@@ -46,7 +46,7 @@ export function BackgroundNotificationPreferencesProvider({
k: Key, k: Key,
v: BackgroundNotificationHandlerPreferences[Key], v: BackgroundNotificationHandlerPreferences[Key],
) => { ) => {
SharedPrefs.setValueAsync(k, v) SharedPrefs.setValue(k, v)
setPreferences(prev => ({ setPreferences(prev => ({
...prev, ...prev,
[k]: v, [k]: v,