import React, { Component } from 'react' import { View, Button, Text, Picker } from 'react-native' import styles from './styles' import { saveBleeding } from './db' import { formatDateForViewHeader } from './format' import { bleeding as labels } from './labels' export default class Bleeding extends Component { constructor(props) { super(props) this.state = { cycleDay: props.navigation.state.params.cycleDay, currentValue: "1" } } // TODO display cycle day render() { const navigate = this.props.navigation.navigate const day = this.state.cycleDay return ( {formatDateForViewHeader(day.date)} Bleeding { this.setState({ currentValue: itemValue }) }}> ) } }