This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit3.js
72 lines (66 loc) · 1.69 KB
/
Unit3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
Unit 3 confirmation!
*/
import React from 'react';
import { StyleSheet, Text, View, Button, Image } from 'react-native';
class Unit3Screen extends React.Component {
static navigationOptions = {
title: 'Location Detected',
};
render() {
return (
<View style={styles.container}>
<Text style = {styles.idStyle}> [ Destination: {"\n"}
Unit 3 Dorms ] </Text>
<Image
borderColor = "black"
borderWidth = "10"
borderRadius = "5"
style={{width: 250, height: 250}}
source={{uri: 'http://www.inspectionservices.net/wp-content/uploads/2016/07/UCB-Unit-3.jpg'}}
/>
<View style={styles.buttonContainer}>
<Text style = {styles.optionStyle}> Select Departure Time </Text>
<Button
title="Select Departure Time"
color="transparent"
onPress={() => this.props.navigation.navigate('DepartureTimes')}
/>
</View>
</View>
);
}
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'powderblue',
alignItems: 'center',
justifyContent: 'center',
},
buttonContainer: {
width: 300,
height: 35,
backgroundColor: 'black',
flexDirection: 'row',
justifyContent: 'center',
borderRadius: 25,
margin: 30,
},
idStyle: {
fontSize: 25,
fontWeight: "bold",
textAlign: "center",
color: "white",
margin: 20
},
optionStyle: {
fontSize: 25,
fontWeight: "bold",
position: "absolute",
textAlign: "center",
justifyContent: "center",
color: "white",
},
});
export default Unit3Screen;