convert some things
This commit is contained in:
-5
@@ -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)
|
||||
}
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user