put view styles in styles.js

This commit is contained in:
tina
2018-06-18 14:06:32 +02:00
parent 4a5afd4662
commit feb642aa92
6 changed files with 95 additions and 31 deletions
+2 -2
View File
@@ -46,13 +46,13 @@ export default class Home extends Component {
render() {
const navigate = this.props.navigation.navigate
return (
<View style={{flex: 0.5, flexDirection: 'column', justifyContent: 'space-around'}}>
<View style={ styles.homeContainerView }>
<View style={{flex: 2}}>
<View>
<Text style={styles.welcome}>{this.state.welcomeText}</Text>
</View>
</View>
<View style={{flex: 3, flexDirection: 'column', justifyContent: 'space-around', margin: 5}}>
<View style={ styles.homeButtonsView}>
<View>
<Button
onPress={() => this.passTodayToDayView()}