import { StyleSheet, Text, View} from 'react-native'; import Button from '../components/Button'; import { useState, useEffect } from 'react'; import DropDownPicker from 'react-native-dropdown-picker'; import AsyncStorage from '@react-native-async-storage/async-storage'; export default function Settings({theme, changeTheme, themeMode}:any){ const [open, setOpen] = useState(false); const [value, setValue] = useState(themeMode); const [items, setItems] = useState([ {label: 'System', value: 'auto'}, {label: 'Light', value: 'light'}, {label: 'Dark', value: 'dark'} ]); useEffect(() => {changeTheme(value)}, [value]); return ( Theme: ) } const style = (theme:any) => { return StyleSheet.create({ container: { width: '100%', }, text: { color: theme.text, }, dropdown: { backgroundColor: theme.primary, color: theme.text, } }); }