2021-08-16 07:50:50 +00:00
|
|
|
import * as React from 'react';
|
2021-08-16 22:39:34 +00:00
|
|
|
import { Button, StyleSheet, Alert } from 'react-native';
|
2021-08-16 07:50:50 +00:00
|
|
|
import { Text, View } from '../components/Themed';
|
|
|
|
|
|
|
|
export default function TripScreen() {
|
|
|
|
return (
|
|
|
|
<View style={styles.container}>
|
|
|
|
<Text style={styles.title}>Trip Control</Text>
|
|
|
|
<View style={styles.separator} lightColor="#eee" darkColor="rgba(255,255,255,0.1)" />
|
2021-08-16 22:39:34 +00:00
|
|
|
|
|
|
|
<View style={styles.controls} >
|
|
|
|
<Button
|
|
|
|
title="Start"
|
|
|
|
onPress={() => Alert.alert('Trip Started')}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
title="Pause"
|
|
|
|
onPress={() => Alert.alert('Trip Paused')}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
title="Stop"
|
|
|
|
onPress={() => Alert.alert('Trip Completed')}
|
|
|
|
/>
|
|
|
|
</View>
|
2021-08-16 07:50:50 +00:00
|
|
|
</View>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
},
|
2021-08-16 22:39:34 +00:00
|
|
|
controls: {
|
|
|
|
width: "80%",
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: "space-between",
|
|
|
|
},
|
2021-08-16 07:50:50 +00:00
|
|
|
title: {
|
|
|
|
fontSize: 20,
|
|
|
|
fontWeight: 'bold',
|
|
|
|
},
|
|
|
|
separator: {
|
|
|
|
marginVertical: 30,
|
|
|
|
height: 1,
|
|
|
|
width: '80%',
|
|
|
|
},
|
|
|
|
});
|