import { StyleSheet, TouchableOpacity } from 'react-native'; import { ThemedText } from '@/components/themed-text'; import { ThemedView } from '@/components/themed-view'; import { IconSymbol } from '@/components/ui/icon-symbol'; import { Colors } from '@/constants/theme'; import { useTheme } from '@/context/ThemeContext'; import { useColorScheme } from '@/hooks/use-color-scheme'; export default function SettingsScreen() { const colorScheme = useColorScheme(); const { themeMode, setThemeMode } = useTheme(); const theme = colorScheme ?? 'light'; const cardStyle = [ styles.card, { shadowColor: Colors[theme].border, borderColor: Colors[theme].border } ]; return ( Settings App preferences Appearance setThemeMode('light')} > Light Mode {themeMode === 'light' && } setThemeMode('dark')} > Dark Mode {themeMode === 'dark' && } setThemeMode('system')} > System Default {themeMode === 'system' && } ); } const styles = StyleSheet.create({ container: { flex: 1, padding: 20, paddingTop: 80, }, header: { marginBottom: 32, }, sectionHeader: { marginBottom: 12, marginTop: 24, }, card: { borderRadius: 16, borderWidth: 1, shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.05, shadowRadius: 8, elevation: 2, overflow: 'hidden', }, item: { padding: 16, borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor: 'rgba(0,0,0,0.05)', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', }, lastItem: { borderBottomWidth: 0, }, });