-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWelcomScreen.js
More file actions
49 lines (43 loc) · 1.11 KB
/
WelcomScreen.js
File metadata and controls
49 lines (43 loc) · 1.11 KB
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
import React from 'react';
import {ImageBackground, StyleSheet, View, Image, Text} from 'react-native';
function WelcomScreen(props) {
return (
<ImageBackground style={styles.background}
source={require('../assets/img2.jpeg')}>
<View style={styles.logoContainer}>
<Image style={styles.logo}
source={require('../assets/img1.jpeg')}/>
<Text>Tour to Islamabad</Text>
</View>
<View style={styles.loginbtn}/>
<View style={styles.registerbtn}/>
</ImageBackground>
);
}
const styles = StyleSheet.create({
background:{
flex: 1,
justifyContent: 'flex-end',
alignItems: "center",
},
loginbtn:{
width: '100%',
height: 70,
backgroundColor: '#fc5c65',
},
registerbtn:{
width: '100%',
height: 70,
backgroundColor: '#4ecdc4',
},
logo:{
width: 100,
height: 100,
},
logoContainer:{
position: "absolute",
top: 50,
alignItems: "center",
},
})
export default WelcomScreen;