-
Notifications
You must be signed in to change notification settings - Fork 0
/
PageTwo.js
75 lines (73 loc) · 2.08 KB
/
PageTwo.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
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native';
import Button from 'apsl-react-native-button';
// import { Actions } from 'react-native-router-flux';
export default class PageOne extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.backgroundImageView}>
<Image
source={require('./assets/background.jpg')}
style={styles.backgroundImage}
blurRadius={4}
/>
</View>
<View style={[styles.tintView, { backgroundColor: this.props.color }]} />
<Button style={styles.buttonFacebook} textStyle={styles.buttonText}>
Sign in with Facebook
</Button>
<Button
style={[styles.buttonEmail, { backgroundColor: this.props.color }]}
textStyle={styles.buttonText}
>
Sign in with Email
</Button>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'transparent'
},
backgroundImage: {
resizeMode: 'cover',
opacity: 0.5
},
backgroundImageView: {
height: 700,
position: 'absolute'
},
tintView: {
opacity: 0.3,
position: 'absolute',
height: 750,
width: 430
},
buttonFacebook: {
backgroundColor: '#4080ff',
borderColor: 'transparent',
width: 350,
height: 60,
marginTop: 40,
marginLeft: 35,
borderRadius: 45
},
buttonEmail: {
backgroundColor: '#95ffce',
borderColor: 'transparent',
width: 350,
height: 60,
marginLeft: 35,
borderRadius: 45
},
buttonText: {
fontSize: 25,
color: '#fff'
}
});