import { View, Text, Switch, StyleSheet } from "react-native"; import { useSettings } from "../context/SettingsContext"; import ColorPicker from "../components/ColorPicker"; export default function SettingsScreen() { const { settings, saveSettings } = useSettings(); const handleColorChange = (color) => { saveSettings({ ...settings, accentColor: color }); }; return ( Settings Dark Mode saveSettings({ ...settings, theme: val ? "dark" : "light", }) } /> Accent Color Enable Notifications saveSettings({ ...settings, notifications: val }) } /> ); } const styles = StyleSheet.create({ container: { flex: 1, padding: 20, }, header: { fontSize: 24, marginBottom: 20, }, settingItem: { flexDirection: "row", justifyContent: "space-between", alignItems: "center", marginVertical: 15, padding: 10, backgroundColor: "#f5f5f5", borderRadius: 10, }, });