/
NavBar.js
46 lines (42 loc) · 849 Bytes
/
NavBar.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
import React from "react";
import { Text, View, StyleSheet } from "react-native";
import { Button } from "react-native-elements";
export default class NavBar extends React.Component {
render() {
return (
<View style={styles.navbar}>
<Text style={styles.text}> Localtrail </Text>
</View>
);
}
}
const styles = StyleSheet.create({
navbar : {
height: 46,
backgroundColor: "#1dc890",
position: "absolute",
top: 0,
flex: 1,
right: 0,
left: 0
},
text : {
color : 'white',
fontSize : 30,
fontWeight : 'bold',
marginTop : 7,
},
text2 : {
color : 'white',
fontSize : 30,
fontWeight : 'bold',
marginTop : 7,
width : 100,
textAlign : 'right',
position: "absolute",
top: 0,
flex: 1,
right: 0,
marginRight : 15
}
});