Place header as component

This commit is contained in:
Julia Friesel
2018-08-17 16:26:00 +02:00
parent 636e5e2f9d
commit 51629f67e2
8 changed files with 73 additions and 45 deletions
+2
View File
@@ -6,6 +6,7 @@ import {
ScrollView
} from 'react-native'
import { LocalDate } from 'js-joda'
import Header from './header'
import styles from '../styles/index'
import cycleModule from '../lib/cycle'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithDummyData, deleteAll } from '../db'
@@ -48,6 +49,7 @@ export default class Home extends Component {
render() {
return (
<ScrollView>
<Header title='Home'/>
<Text style={styles.welcome}>{this.state.welcomeText}</Text>
<View style={styles.homeButtons}>
<View style={styles.homeButton}>