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

@@ -59,7 +59,7 @@ const defineConfig = (): ExpoConfig => ({
},
],
[
"expo-dynamic-app-icon",
"@config-plugins/react-native-dynamic-app-icon",
{
main: {
image: "./assets/images/main.png",

View File

@@ -18,6 +18,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@config-plugins/react-native-dynamic-app-icon": "^7.0.0",
"@expo/metro-config": "^0.17.3",
"@movie-web/colors": "*",
"@movie-web/provider-utils": "*",
@@ -36,7 +37,6 @@
"expo-brightness": "~11.8.0",
"expo-build-properties": "~0.11.1",
"expo-constants": "~15.4.5",
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",
"expo-haptics": "~12.8.1",
"expo-linear-gradient": "^12.7.2",
"expo-linking": "~6.2.2",
@@ -64,6 +64,7 @@
"react-native-screens": "~3.29.0",
"react-native-svg": "14.1.0",
"react-native-web": "^0.19.10",
"rn-dynamic-app-icon": "^0.6.1",
"subsrt-ts": "^2.1.2",
"tamagui": "^1.91.4",
"zustand": "^4.4.7"

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) => {