This repository has been archived by the owner on Sep 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
mainStyle.js
93 lines (92 loc) · 2 KB
/
mainStyle.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
import { StyleSheet } from 'react-native';
import { widthPercentageToDP as wp } from 'react-native-responsive-screen';
import layout from '../constants/layout';
import {
colors,
fontSize,
footerTabIconSize,
headerFontSize,
headerHeight,
headerImageHeight,
headerImageWidth,
splashImageHeight,
splashImageWidth,
} from '../constants/theme';
export default StyleSheet.create({
headerStyle: {
position: 'absolute',
width: '100%',
backgroundColor: colors.PRIMARY_ALPHA,
top: 0,
left: 0,
right: 0,
color: 'white',
fontWeight: 'bold',
height: headerHeight,
},
headerTitleStyle: {
flex: 1,
textAlign: 'center',
alignSelf: 'center',
color: 'white',
fontWeight: 'bold',
},
headerTitleContainer: {
flex: 1,
width: '100%',
height: '100%',
alignItems: 'center',
justifyContent: 'center',
},
headerTitleContainerText: {
fontWeight: 'bold',
color: 'white',
fontSize: fontSize.TITLE,
justifyContent: 'center',
},
headerImageStyle: {
width: headerImageWidth * 1.15,
height: headerImageHeight * 1.15,
},
headerTextTitleStyle: {
color: 'white',
fontWeight: 'bold',
width: '100%',
fontSize: headerFontSize,
},
viewContainer: {
flex: 1,
backgroundColor: colors.BACKGROUND,
paddingLeft: wp('1.5%'),
paddingRight: wp('1.5%'),
paddingBottom: wp('2%'),
},
basicCenterContainer: {
flex: 1,
justifyContent: 'flex-start',
},
tabBarStyle: {
borderWidth: 1,
borderColor: '#ccc',
width: '100%',
padding: 0,
margin: 0,
justifyContent: 'center',
height: layout.isSmallDevice
? footerTabIconSize * 2.5
: footerTabIconSize * 2.25,
backgroundColor: colors.TABBAR_BACKGROUND,
},
tabBarIconStyle: {
width: '100%',
},
tabBarLabelStyle: {
fontSize: layout.isSmallDevice ? wp('3%') : wp('2%'),
width: '100%',
},
splashImage: {
alignSelf: 'center',
width: splashImageWidth,
height: splashImageHeight,
},
});