Draw curve as FlatList instead of monolithic SVG

This commit is contained in:
Julia Friesel
2018-06-24 22:31:35 +02:00
parent fd672ad053
commit f87f676a99
2 changed files with 81 additions and 171 deletions
+8 -3
View File
@@ -53,7 +53,7 @@ function saveTemperature(cycleDay, temperature) {
})
}
const getCycleDaysSortedByDateView = () => db.objects('CycleDay').sorted('date', true)
const cycleDaysSortedByDate = db.objects('CycleDay').sorted('date', true)
function saveBleeding(cycleDay, bleeding) {
db.write(() => {
@@ -73,6 +73,10 @@ function getOrCreateCycleDay(localDate) {
return result
}
function getCycleDay(localDate) {
return db.objectForPrimaryKey('CycleDay', localDate)
}
function deleteAll() {
db.write(() => {
db.deleteAll()
@@ -95,7 +99,8 @@ export {
getOrCreateCycleDay,
bleedingDaysSortedByDate,
temperatureDaysSortedByDate,
getCycleDaysSortedByDateView,
cycleDaysSortedByDate,
deleteAll,
getPreviousTemperature
getPreviousTemperature,
getCycleDay
}