import * as React from 'react'; import { StyleSheet, Switch, TextInput } from 'react-native'; import { Text, View } from '../components/Themed'; import { useState } from 'react'; import SettingsScreenInfo from '../components/SettingsScreenInfo'; import { SafeAreaView } from 'react-native-safe-area-context'; export default function SettingsScreen() { const [text, onChangeText] = React.useState("Useless Text"); const [number, onChangeNumber] = React.useState(null); const [isKM, setIsKM] = useState(false); const toggleUnits = () => setIsKM(previousState => !previousState); return ( Model Settings ); } const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, title: { fontSize: 20, fontWeight: 'bold', }, separator: { marginVertical: 30, height: 1, width: '80%', }, input: { height: 40, margin: 12, borderWidth: 1, padding: 10, }, });