import React from 'react' import { ScrollView, StyleSheet, View } from 'react-native' import { NativeStackNavigationOptions } from '@react-navigation/native-stack' import useSettingsStorage from '../hooks/useSettingsStorage' import { Layout as LayoutStyle, Sizing } from '../styles' import { translate } from '../utils/translation' import { SettingGroup, SettingListItemSelectable, } from './settingsComponents.component' export const settingsAppearanceThemeRouteOptions = (): NativeStackNavigationOptions => ({ title: translate('settings.theme'), }) const themes = ['light', 'dark'] export const SettingsAppearanceThemeScreen = () => { const [settingsTheme, setSettingsTheme] = useSettingsStorage('theme') return ( {themes.map((theme) => { return ( setSettingsTheme(theme)} title={translate(`themes.${theme}`)} isSelected={theme === settingsTheme} /> ) })} ) } const styles = StyleSheet.create({ container: { padding: Sizing.t4, }, themeList: { paddingHorizontal: Sizing.t4, }, })