-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.js
More file actions
31 lines (27 loc) · 684 Bytes
/
header.js
File metadata and controls
31 lines (27 loc) · 684 Bytes
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
import React, {Component} from 'react';
import {Text, StyleSheet, View} from 'react-native';
export default class Header extends Component{
render () {
const {header, headerText} = styles;
return(
<View style={header}>
<Text style={headerText}>{this.props.headerText}</Text>
</View>
)
}
}
const styles = StyleSheet.create({
header: {
height:80,
paddingTop:30,
justifyContent:'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
shadowColor:'#000000',
shadowOpacity:0.5
},
headerText:{
fontSize:30,
textAlign:'center'
}
});