more basic layout put

This commit is contained in:
Arjun Patel
2018-04-25 16:04:04 -07:00
parent b03f301aa5
commit 7ef574ca91
6 changed files with 104 additions and 3 deletions
+49 -2
View File
@@ -6,6 +6,7 @@ import {
Dimensions,
View,
Text,
Image
} from 'react-native';
import {
Actions
@@ -19,12 +20,58 @@ export default class Navbar extends Component<Props> {
render() {
return (
<View style={styles.container}>
<Text>navbar</Text>
<View style={styles.iconCont}>
<Image
style={styles.menuIcon}
source={require('../../assets/images/menuIcon.png')}
/>
</View>
<View style={styles.headerTxt}>
<Text style={styles.head}>Main Chat</Text>
<Text style={styles.status}>online</Text>
</View>
<View style={styles.iconCont}>
<Image
style={styles.inboxIcon}
source={require('../../assets/images/inboxIcon.jpg')}
/>
</View>
</View>
);
}
}
const styles = {
container: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
backgroundColor: '#0e8f9e'
},
iconCont: {
flex: 1,
alignItems: 'center',
justifyContent: 'center'
},
menuIcon: {
height: 50,
width: 50
},
headerTxt: {
flex: 7,
justifyContent: 'center',
alignItems: 'center'
},
head: {
fontSize: 20,
color: 'white'
},
status: {
fontSize: 13,
color: 'white'
},
inboxIcon: {
height: 40,
width: 40
}
}