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' export default class Bleeding extends Component { constructor(props) { super(props) this.state = { cycleDay: props.navigation.state.params.cycleDay, currentValue: null } } // TODO display cycle day render() { const navigate = this.props.navigation.navigate const day = this.state.cycleDay return ( {formatDateForViewHeader(day.date)} { this.setState({ currentValue: itemValue }) }}> ) } }