Copy database and delete old one

This commit is contained in:
Julia Friesel
2018-09-07 20:01:53 +02:00
parent 701f1bc5ce
commit b7470151b4
8 changed files with 102 additions and 127 deletions
+10 -1
View File
@@ -8,7 +8,7 @@ import {
import { LocalDate, ChronoUnit } from 'js-joda'
import styles from '../styles/index'
import cycleModule from '../lib/cycle'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithMucusDummyData, fillWithCervixDummyData, deleteAll } from '../db'
import { encrypt, getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithMucusDummyData, fillWithCervixDummyData, deleteAll } from '../db'
import {bleedingPrediction as labels} from './labels'
const getCycleDayNumber = cycleModule().getCycleDayNumber
@@ -78,6 +78,15 @@ export default class Home extends Component {
title="delete everything">
</Button>
</View>
<View style={styles.homeButton}>
<Button
onPress={() => {
console.log('pressed')
encrypt()
}}
title="encrypt, yo">
</Button>
</View>
</View>
</ScrollView>
)