-
Notifications
You must be signed in to change notification settings - Fork 0
/
Header.js
45 lines (42 loc) · 1.36 KB
/
Header.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
import React, {Component} from 'react';
import {View, Text, StyleSheet, TouchableOpacity} from 'react-native';
import { Icon } from 'react-native-elements';
export default class Header extends Component {
render(){
return(
<View style={styles.container}>
<TouchableOpacity>
<Icon style={styles.button}name="angle-down" type='font-awesome' size={24} color="white"/>
</TouchableOpacity>
<Text style={styles.message}> {this.props.message}</Text>
<TouchableOpacity>
<Icon style={styles.button}name='queue-music' type='material-icons' size={24} color='white' />
</TouchableOpacity>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
borderRadius: 4,
borderWidth: 1,
borderColor: 'black',
height: 100,
paddingTop: 40,
paddingLeft: 15,
paddingRight: 15,
flexDirection: 'row',
},
message: {
flex: 1,
textAlign: 'center',
color: 'rgba(255, 255, 255, 0.72)',
fontWeight: 'bold',
fontSize: 15
},
button: {
opacity: 0.72
}
});
/*<FontAwesome style={styles.button}name="angle-down" size={24} color="white" />
<MaterialIcons style={styles.button} name="queue-music" size={24} color="white" />*/