-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUploadComplete.js
81 lines (77 loc) · 1.89 KB
/
UploadComplete.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
73
74
75
76
77
78
79
80
81
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, TouchableOpacity, Image} from 'react-native';
import LinearGradient from "react-native-linear-gradient";
export default class UploadComplete extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.message_container}>
<Text style={styles.message}>
{" "}
{"\t"}We got your Image!{"\t"}{" "}
</Text>
</View>
<View style={styles.icon}>
<Image source={require("./assets/Earth.png")} />
</View>
<View style={styles.button_container}>
<TouchableOpacity onPress = {() => this.props.nav.replace("CameraScreen")}>
<LinearGradient
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 0 }}
colors={["#A8EB12", "#055308"]}
style={styles.button_gradient}
>
<Image
style={styles.button_image}
source={require("./assets/Reload.png")}
/>
</LinearGradient>
</TouchableOpacity>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: "white",
flex: 1,
flexDirection: "column"
},
message_container: {
flex: 7,
justifyContent: "center",
alignItems: "center"
},
message: {
color: "green",
fontSize: 40,
fontWeight: "bold"
},
icon: {
flex: 7,
paddingBottom: 80,
justifyContent: "flex-end",
alignItems: "center"
},
button_container: {
flex: 1.5,
alignItems: "center",
paddingBottom: 10
},
button_gradient: {
flex: 1,
paddingLeft: 15,
paddingRight: 15,
borderRadius: 5,
justifyContent: "center",
alignItems: "center",
height: 100,
width: 100
},
button_image: {
width: 45,
height: 45
}
});