more basic layout put
This commit is contained in:
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 |
@@ -26,4 +26,8 @@ export default class AdSpace extends Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
|
container: {
|
||||||
|
flex: 1,
|
||||||
|
backgroundColor: 'black'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import {
|
|||||||
Dimensions,
|
Dimensions,
|
||||||
View,
|
View,
|
||||||
Text,
|
Text,
|
||||||
|
TextInput,
|
||||||
|
Image
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import {
|
import {
|
||||||
Actions
|
Actions
|
||||||
@@ -19,11 +21,59 @@ export default class Chat extends Component<Props> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<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>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = {
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
Dimensions,
|
Dimensions,
|
||||||
View,
|
View,
|
||||||
Text,
|
Text,
|
||||||
|
Image
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import {
|
import {
|
||||||
Actions
|
Actions
|
||||||
@@ -19,12 +20,58 @@ export default class Navbar extends Component<Props> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<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>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = {
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user