diff --git a/app.js b/app.js
index 8976a63..3a310a0 100644
--- a/app.js
+++ b/app.js
@@ -1,6 +1,7 @@
import { createStackNavigator } from 'react-navigation'
import Home from './home'
-import TemperatureList from './list'
+
+import Temperature from './temperature'
import Calendar from './calendar'
import DayView from './day-view'
import Bleeding from './bleeding'
@@ -11,8 +12,9 @@ YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated'])
export default createStackNavigator({
home: { screen: Home },
- temperatureList: { screen: TemperatureList },
+
+ temperature: { screen: Temperature },
calendar: { screen: Calendar },
dayView: { screen: DayView },
bleeding: { screen: Bleeding }
-})
\ No newline at end of file
+})
diff --git a/bleeding.js b/bleeding.js
index 6b2e956..31dc8c6 100644
--- a/bleeding.js
+++ b/bleeding.js
@@ -17,22 +17,21 @@ const getCycleDayNumber = cycleDayModule()
export default class Bleeding extends Component {
constructor(props) {
super(props)
- const cycleDay = props.navigation.state.params.cycleDay
- let bleedingValue = cycleDay.bleeding && cycleDay.bleeding.value
+ this.cycleDay = props.navigation.state.params.cycleDay
+ let bleedingValue = this.cycleDay.bleeding && this.cycleDay.bleeding.value
if (! (typeof bleedingValue === 'number') ){
bleedingValue = -1
}
this.state = {
- cycleDay,
currentValue: bleedingValue,
- exclude: cycleDay.bleeding ? cycleDay.bleeding.exclude : false
+ exclude: this.cycleDay.bleeding ? this.cycleDay.bleeding.exclude : false
}
}
// TODO display cycle day
render() {
const navigate = this.props.navigation.navigate
- const day = this.state.cycleDay
+ const day = this.cycleDay
const bleedingRadioProps = [
{label: labels[0], value: 0 },
{label: labels[1], value: 1 },
@@ -50,13 +49,13 @@ export default class Bleeding extends Component {
formHorizontal={true}
labelHorizontal={false}
onPress={(itemValue) => {
- this.setState({ currentValue: itemValue })
+ this.setState({currentValue: itemValue})
}}
/>
Exclude
{
- this.setState({ exclude: val })
+ this.setState({exclude: val})
}}
value={this.state.exclude} />