-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPageHeader.tsx
53 lines (50 loc) · 1.11 KB
/
PageHeader.tsx
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
import React from 'react';
import {Image, StyleSheet, Text, View} from 'react-native';
import Line from '../line/Line';
interface Props {
url?: string;
title?: string;
subtitle?: string;
}
const PageHeader: React.FC<Props> = ({url, title, subtitle}) => {
return (
<View style={style.container_logo_name} testID="header-test">
<Image source={{uri: url}} style={style.img} />
<Text style={style.title}>{title}</Text>
<Text style={style.subtitle}>{subtitle}</Text>
<Line />
</View>
);
};
const style = StyleSheet.create({
container_logo_name: {
paddingTop: 30,
marginBottom: 20,
paddingBottom: 20,
},
img: {
width: 130,
height: 130,
alignSelf: 'center',
borderRadius: 80,
},
title: {
paddingTop: 10,
color: '#ffffff',
fontSize: 50,
textAlign: 'center',
alignItems: 'center',
fontWeight: 'normal',
},
subtitle: {
paddingTop: 10,
color: '#ffffff',
textAlign: 'center',
alignItems: 'center',
fontSize: 15,
paddingLeft: 20,
paddingRight: 20,
paddingBottom: 30,
},
});
export default PageHeader;