Fixes the cycle day data is not being passed to the symptom view

This commit is contained in:
Sofiya Tepikin
2019-08-22 21:03:11 +02:00
parent 16cc2cef5c
commit 525defa1c9
3 changed files with 15 additions and 10 deletions
+5 -1
View File
@@ -17,6 +17,7 @@ import styles, { cycleDayColor, periodColor, secondaryColor } from '../styles'
import AppText from './app-text'
import Button from './button'
import { formatDateForShortText } from './helpers/format-date'
import { getCycleDay } from '../db'
const IconText = ({ children, wrapperStyles }) => {
return (
@@ -81,7 +82,10 @@ class Home extends Component {
navigateToBleedingEditView = () => {
this.setTodayDate()
this.props.navigate('BleedingEditView')
this.props.navigate(
'BleedingEditView',
getCycleDay(this.todayDateString)
)
}
render() {