fix: use different module that probably builds on windows

This commit is contained in:
Adrian Castro
2024-03-19 18:40:28 +01:00
parent 74ab26a922
commit d3368ef644
4 changed files with 30 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
import { setAppIcon } from "expo-dynamic-app-icon";
import { changeIcon } from "rn-dynamic-app-icon";
import { create } from "zustand";
import { immer } from "zustand/middleware/immer";
@@ -26,7 +26,7 @@ export const useThemeStore = create(
.then(() => {
set((s) => {
s.theme = newTheme;
setAppIcon(newTheme);
void changeIcon(newTheme);
});
})
.catch((error) => {