mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 10:23:24 +00:00
chore: formatting
This commit is contained in:
@@ -65,16 +65,16 @@ const defineConfig = (): ExpoConfig => ({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"expo-alternate-app-icons",
|
"expo-alternate-app-icons",
|
||||||
[
|
[
|
||||||
"./assets/images/main.png",
|
"./assets/images/main.png",
|
||||||
"./assets/images/blue.png",
|
"./assets/images/blue.png",
|
||||||
"./assets/images/gray.png",
|
"./assets/images/gray.png",
|
||||||
"./assets/images/red.png",
|
"./assets/images/red.png",
|
||||||
"./assets/images/teal.png",
|
"./assets/images/teal.png",
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"expo-media-library",
|
"expo-media-library",
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
|
import { setAlternateAppIcon } from "expo-alternate-app-icons";
|
||||||
import { create } from "zustand";
|
import { create } from "zustand";
|
||||||
import { immer } from "zustand/middleware/immer";
|
import { immer } from "zustand/middleware/immer";
|
||||||
import { setAlternateAppIcon } from "expo-alternate-app-icons";
|
|
||||||
import { getTheme, saveTheme } from "~/settings";
|
import { getTheme, saveTheme } from "~/settings";
|
||||||
|
|
||||||
export type ThemeStoreOption = "main" | "blue" | "gray" | "red" | "teal";
|
export type ThemeStoreOption = "main" | "blue" | "gray" | "red" | "teal";
|
||||||
@@ -25,7 +26,7 @@ export const useThemeStore = create(
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
set((s) => {
|
set((s) => {
|
||||||
s.theme = newTheme;
|
s.theme = newTheme;
|
||||||
void setAlternateAppIcon(newTheme)
|
void setAlternateAppIcon(newTheme);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Reference in New Issue
Block a user