feat: dynamic app icon

This commit is contained in:
Adrian Castro
2024-03-19 10:24:19 +01:00
parent 202e1484f5
commit f1032f8033
5 changed files with 48 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import { setAppIcon } from "expo-dynamic-app-icon";
import { create } from "zustand";
import { immer } from "zustand/middleware/immer";
@@ -14,6 +15,7 @@ export const useThemeStore = create(
setTheme(v) {
set((s) => {
s.theme = v;
setAppIcon(v);
});
},
})),