-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
97 lines (86 loc) · 2.17 KB
/
App.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
93
94
95
96
97
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Login from './Container/Login/login'
import { ImageBackground , TouchableHighlight,Alert, Image,} from 'react-native';
class App extends Component{
constructor(props) {
super(props);
state = {
email : '',
password: '',
}
}
onClickListener = (viewId) => {
Alert.alert("Alert", "Button pressed "+viewId);
}
render(){
return (
<View style={styles.container}>
<ImageBackground style={ styles.imgBackground }
resizeMode='cover'
source={require('../testProject/assets/Images/bg.png')}>
<Login />
<TouchableHighlight style={styles.buttonContainerNew} onPress={() => this.onClickListener('restore_password')}>
<Text style={styles.textSty}>New Register</Text>
</TouchableHighlight>
<TouchableHighlight style={styles.buttonContainerNew2} onPress={() => this.onClickListener('register')}>
<View style={styles.loginFB}>
<Text style={styles.textSty}>Login with Facebook</Text>
<Image style={styles.fbIcon} source={require('./assets/Images/fb.png')}/>
</View>
</TouchableHighlight>
</ImageBackground>
</View>
);
}
}
export default App
const styles = StyleSheet.create({
container: {
flex: 1,
},
imgBackground: {
width: '100%',
height: '100%',
flex: 1
},
buttonContainerNew: {
height:50,
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
width:'100%',
borderColor:'red',
backgroundColor:'#808080cf',
opacity:0.5,
borderColor:'grey',
borderTopWidth:1,
borderBottomWidth:1
},
buttonContainerNew2: {
height:50,
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
width:'100%',
backgroundColor:'#808080cf',
opacity:0.5,
borderBottomWidth:1,
borderColor:'grey',
},
loginFB:{
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center'
},
textSty:{
color:'white',
fontSize:16,
fontFamily:'sans-serif',
fontStyle:'italic',
},
fbIcon:{
justifyContent: 'center',
marginLeft:20
}
});