Draw curve as FlatList instead of monolithic SVG
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user