more basic layout put
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user