GT2/Ejectable/components/ScreenInfo.tsx

68 lines
1.7 KiB
TypeScript
Raw Normal View History

2021-08-16 22:39:34 +00:00
import * as WebBrowser from 'expo-web-browser';
import React from 'react';
import { StyleSheet, TouchableOpacity } from 'react-native';
import Colors from '../constants/Colors';
import { MonoText } from './StyledText';
import { Text, View } from './Themed';
2021-08-17 19:34:08 +00:00
export default function ScreenInfo() {
2021-08-16 22:39:34 +00:00
return (
<View style={styles.settingsContainer}>
<Text
style={styles.settingsText}
lightColor="rgba(0,0,0,0.8)"
darkColor="rgba(255,255,255,0.8)">
2021-08-17 21:05:34 +00:00
Switch dark km/ light mi, select fuel used, or manually set CO2 per distance
2021-08-17 19:34:08 +00:00
</Text>
</View>
);
}
export function ScreenInfo2() {
return (
<View style={styles.settingsContainer}>
<Text
style={styles.settingsText}
lightColor="rgba(0,0,0,0.8)"
darkColor="rgba(255,255,255,0.8)">
Use Pause if fuel burning portion of trip interrupted
2021-08-16 22:39:34 +00:00
</Text>
</View>
);
}
2021-08-17 22:00:09 +00:00
export function ScreenInfo3() {
return (
<View style={styles.settingsContainer}>
<Text
style={styles.settingsText}
lightColor="rgba(0,0,0,0.8)"
darkColor="rgba(255,255,255,0.8)">
2021-08-18 18:21:15 +00:00
Green Travel Carbon Calculator v. 2
</Text>
<Text
style={styles.versionText}
lightColor="rgba(0,0,0,0.8)"
darkColor="rgba(255,255,255,0.8)">
expo version
2021-08-17 22:00:09 +00:00
</Text>
</View>
);
}
2021-08-16 22:39:34 +00:00
const styles = StyleSheet.create({
settingsContainer: {
marginHorizontal: 50,
2021-08-17 19:34:08 +00:00
marginVertical: 20,
2021-08-16 22:39:34 +00:00
},
settingsText: {
fontSize: 17,
lineHeight: 24,
textAlign: 'center',
},
2021-08-18 18:21:15 +00:00
versionText: {
fontSize: 8,
textAlign: 'center',
},
2021-08-16 22:39:34 +00:00
});