-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSplashScreen.js
48 lines (42 loc) · 1.12 KB
/
SplashScreen.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
import React from 'react';
import {Text,View,StyleSheet, Dimensions} from 'react-native'
import {bgColor, textPrimary} from './constants'
const wHeight=Dimensions.get('window').height
const wWidth=Dimensions.get('window').width
export default Splash=(props)=>{
return(
<View style={{backgroundColor:bgColor, height:wHeight}}>
<View style={styles.container}>
<View style={styles.flexCont}>
<View>
<Text style={styles.smallText}>{props.content.leftTopText}</Text>
<Text style={styles.smallText}>{props.content.leftBottomText}</Text>
</View>
<Text style={styles.bigText}>{props.content.commonLetter}</Text>
</View>
</View>
<Text style={{textAlign:'center', color:textPrimary}}>{props.content.bottomText}</Text>
</View>
)
}
const styles=StyleSheet.create({
flexCont:{
display:'flex',
flexDirection:'row',
alignItems:'center',
justifyContent:'center'
},
bigText:{
fontSize:80,
color:textPrimary
},
smallText:{
fontSize:30,
color:textPrimary
},
container:{
justifyContent:'center',
height:wHeight*0.9,
textAlign:'center'
}
})