feat: use up-to-date dynamic icon lib that doesn't support android atm

This commit is contained in:
Adrian Castro
2024-03-24 22:09:39 +01:00
parent a2761b1f7e
commit f239b4d759
4 changed files with 28 additions and 53 deletions

View File

@@ -1,7 +1,6 @@
import { changeIcon } from "react-native-change-icon";
import { create } from "zustand";
import { immer } from "zustand/middleware/immer";
import { setAlternateAppIcon } from "expo-alternate-app-icons";
import { getTheme, saveTheme } from "~/settings";
export type ThemeStoreOption = "main" | "blue" | "gray" | "red" | "teal";
@@ -26,7 +25,7 @@ export const useThemeStore = create(
.then(() => {
set((s) => {
s.theme = newTheme;
void changeIcon(newTheme);
void setAlternateAppIcon(newTheme)
});
})
.catch((error) => {