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
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

+4
View File
@@ -26,4 +26,8 @@ export default class AdSpace extends Component<Props> {
}
const styles = {
container: {
flex: 1,
backgroundColor: 'black'
}
}
+51 -1
View File
@@ -6,6 +6,8 @@ import {
Dimensions,
View,
Text,
TextInput,
Image
} from 'react-native';
import {
Actions
@@ -19,11 +21,59 @@ export default class Chat extends Component<Props> {
render() {
return (
<View style={styles.container}>
<Text>chat</Text>
<View style={styles.chatField}>
</View>
<View style={styles.inputMsgField}>
<View style={styles.iconCont}>
<Text>cra</Text>
</View>
<View style={styles.inputCont}>
<TextInput
placeholder="Type message..."
/>
</View>
<View style={styles.iconCont}>
<Image
style={styles.sendIcon}
source={require('../../assets/images/sendIcon.png')}
/>
</View>
</View>
</View>
);
}
}
const styles = {
container: {
flex: 1,
flexDirection: 'column',
justifyContent: 'flex-end',
backgroundColor: '#e8ebef'
},
chatField: {
flex: 8
},
inputMsgField: {
flex: 1,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
height: 50,
backgroundColor: 'white'
},
iconCont: {
flex: 1,
alignItems: 'center',
justifyContent: 'center'
},
inputCont: {
flex: 6,
alignSelf: 'flex-end'
},
sendIcon: {
height: 30,
width: 30
}
}
+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
}
}