Gather general cycle-related functions in cycle module

This commit is contained in:
Julia Friesel
2018-06-30 13:50:01 +02:00
parent 97b8452b45
commit 28b880a40c
8 changed files with 84 additions and 75 deletions
+4 -2
View File
@@ -6,14 +6,16 @@ import {
} from 'react-native'
import styles from '../styles/index'
import { bleeding as labels} from '../labels/labels'
import cycleDayModule from '../lib/get-cycle-day-number'
import cycleModule from '../lib/cycle'
import { bleedingDaysSortedByDate } from '../db'
const getCycleDayNumber = cycleDayModule()
const getCycleDayNumber = cycleModule().getCycleDayNumber
export default class DayView extends Component {
constructor(props) {
super(props)
console.log('new')
console.log(props.cycleDay)
this.cycleDay = props.cycleDay
this.showView = props.showView
this.state = {