Extract navigator and make filenames lowercase, class names uppercase

This commit is contained in:
Julia Friesel
2018-05-30 21:53:19 +02:00
parent 9863da302e
commit 2fe554885d
5 changed files with 15 additions and 14 deletions
+30
View File
@@ -0,0 +1,30 @@
import React, { Component } from 'react'
import {
View,
Button,
Text
} from 'react-native'
import styles from './styles'
export default class Home extends Component {
constructor(props) {
super(props)
}
render() {
const navigate = this.props.navigation.navigate
return (
<View style={styles.container}>
<Text style={styles.welcome}>Welcome! Today is day 6 of your current cycle</Text>
<Button
onPress={() => navigate('temperatureList')}
title="Edit symptoms for today">
</Button>
<Button
onPress={() => navigate('datepicker')}
title="Go to calendar">
</Button>
</View>
)
}
}