mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-12 07:12:22 +00:00
wip
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { atom, useAtom } from "jotai";
|
||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
||||
import { useEffect } from "react";
|
||||
import { getLocales } from "expo-localization";
|
||||
|
||||
type Settings = {
|
||||
autoRotate?: boolean;
|
||||
@@ -10,6 +11,7 @@ type Settings = {
|
||||
deviceProfile?: "Expo" | "Native" | "Old";
|
||||
forceDirectPlay?: boolean;
|
||||
mediaListCollectionIds?: string[];
|
||||
preferedLanguage?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -33,6 +35,7 @@ const loadSettings = async (): Promise<Settings> => {
|
||||
deviceProfile: "Expo",
|
||||
forceDirectPlay: false,
|
||||
mediaListCollectionIds: [],
|
||||
preferedLanguage: getLocales()[0] || "en",
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user