fix: default values

This commit is contained in:
Fredrik Burmester
2024-08-15 10:39:40 +02:00
parent 17641bb529
commit ea95cae685

View File

@@ -21,7 +21,11 @@ const loadSettings = async (): Promise<Settings> => {
const jsonValue = await AsyncStorage.getItem("settings");
return jsonValue != null
? JSON.parse(jsonValue)
: { theme: "light", notificationsEnabled: true, language: "en" };
: {
autoRotate: true,
forceLandscapeInVideoPlayer: false,
openFullScreenVideoPlayerByDefault: false,
};
};
// Utility function to save settings to AsyncStorage