mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-20 02:54:17 +01:00
fix: default values
This commit is contained in:
@@ -21,7 +21,11 @@ const loadSettings = async (): Promise<Settings> => {
|
|||||||
const jsonValue = await AsyncStorage.getItem("settings");
|
const jsonValue = await AsyncStorage.getItem("settings");
|
||||||
return jsonValue != null
|
return jsonValue != null
|
||||||
? JSON.parse(jsonValue)
|
? JSON.parse(jsonValue)
|
||||||
: { theme: "light", notificationsEnabled: true, language: "en" };
|
: {
|
||||||
|
autoRotate: true,
|
||||||
|
forceLandscapeInVideoPlayer: false,
|
||||||
|
openFullScreenVideoPlayerByDefault: false,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// Utility function to save settings to AsyncStorage
|
// Utility function to save settings to AsyncStorage
|
||||||
|
|||||||
Reference in New Issue
Block a user