-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLogOutConfirmScreen.js
92 lines (89 loc) · 2.1 KB
/
LogOutConfirmScreen.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
82
83
84
85
86
87
88
89
90
91
92
import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
Dimensions,
Button
} from 'react-native';
import * as firebase from 'firebase';
export default class LogOutScreen extends React.Component {
static navigationOptions = {
header: null,
};
render() {
return (
<View style={styles.container}>
<Image style = {styles.dingo}
source={require('./dingotransparent.png')} />
<Text style={styles.logText}>You are about to log out.</Text>
<Text style={styles.logText}>Are you sure?</Text>
<TouchableOpacity onPress={() => {this.props.navigation.navigate('LogOut');}}>
<View style={styles.logOutButton}>
<Text style={styles.logOutText}>LOG OUT</Text>
</View>
</TouchableOpacity>
<TouchableOpacity onPress={() => this.props.navigation.navigate('HomeScreen')}>
<View style={styles.cancelButton}>
<Text style={styles.cancelText}>CANCEL</Text>
</View>
</TouchableOpacity>
</View>
);
}
}
const window = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#C4C4C4',
padding: 30,
paddingTop: 50,
alignItems: 'center',
},
logText: {
alignItems: 'center',
fontSize: 20,
fontFamily: 'Avenir',
color: '#fff',
},
dingo: {
marginTop: 40,
marginBottom: 20,
width: 92,
height: 137,
},
logOutButton: {
margin: 20,
padding: 10,
borderRadius: 30,
backgroundColor: '#FFFFFF',
width: window.width / 2,
alignItems: 'center',
shadowOffset: {width: 0, height: 4},
shadowOpacity: 0.25,
shadowRadius: 4,
shadowColor: '#000000',
},
cancelButton: {
padding: 10,
borderRadius: 30,
backgroundColor: '#171797',
width: window.width / 2,
alignItems: 'center',
shadowOffset: {width: 0, height: 4},
shadowOpacity: 0.25,
shadowRadius: 4,
shadowColor: '#000000',
},
logOutText: {
color: '#171797',
},
cancelText: {
color: '#FFFFFF',
},
});