This commit is contained in:
parent
63b18ef1ac
commit
e62e8df3b6
|
@ -6068,6 +6068,15 @@
|
|||
"url-parse": "^1.4.4"
|
||||
}
|
||||
},
|
||||
"expo-location": {
|
||||
"version": "12.1.2",
|
||||
"resolved": "https://registry.npmjs.org/expo-location/-/expo-location-12.1.2.tgz",
|
||||
"integrity": "sha512-6P/JR8xkw7UjifiDhyvgYtGZ1iKSLjmAcb0Ksirh3jA3Sao7dbz5ykPu44+UnUZ/SLVqaScJoyMkGclFrtzu8Q==",
|
||||
"requires": {
|
||||
"@expo/config-plugins": "^3.0.0",
|
||||
"expo-modules-core": "~0.2.0"
|
||||
}
|
||||
},
|
||||
"expo-modules-autolinking": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-0.0.3.tgz",
|
||||
|
|
|
@ -28,11 +28,12 @@
|
|||
"react": "16.13.1",
|
||||
"react-dom": "16.13.1",
|
||||
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
|
||||
"react-native-reanimated": "~2.2.0",
|
||||
"react-native-gesture-handler": "~1.10.2",
|
||||
"react-native-reanimated": "~2.2.0",
|
||||
"react-native-safe-area-context": "3.2.0",
|
||||
"react-native-screens": "~3.4.0",
|
||||
"react-native-web": "~0.13.12"
|
||||
"react-native-web": "~0.13.12",
|
||||
"expo-location": "~12.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
|
|
|
@ -3,6 +3,7 @@ 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");
|
||||
|
@ -14,23 +15,23 @@ export default function SettingsScreen() {
|
|||
<View style={styles.container}>
|
||||
<Text style={styles.title}>Model Settings</Text>
|
||||
<View style={styles.separator} lightColor="#eee" darkColor="rgba(255,255,255,0.1)" />
|
||||
<SettingsScreenInfo />
|
||||
<Switch
|
||||
|
||||
<SettingsScreenInfo />
|
||||
<Switch
|
||||
trackColor={{ false: "#767577", true: "#81b0ff" }}
|
||||
thumbColor={true ? "#f5dd4b" : "#f4f3f4"}
|
||||
ios_backgroundColor="#3e3e3e"
|
||||
onValueChange={toggleUnits}
|
||||
value={isKM}
|
||||
/>
|
||||
<TextInput
|
||||
/>
|
||||
<TextInput
|
||||
style={styles.input}
|
||||
onChangeText={onChangeNumber}
|
||||
value={number}
|
||||
defaultValue="0.66666"
|
||||
returnKeyType={'done'}
|
||||
placeholder="CO2 Per km/mi"
|
||||
keyboardType="numeric"
|
||||
/>
|
||||
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": "expo/tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"strict": false
|
||||
"strict": true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue