Add button to add dummy data

This commit is contained in:
Julia Friesel
2018-07-23 12:22:27 +02:00
parent b63a9560df
commit f52401d05d
3 changed files with 106 additions and 8 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import {
import { LocalDate } from 'js-joda'
import styles from '../styles/index'
import cycleModule from '../lib/cycle'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, deleteAll } from '../db'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithDummyData } from '../db'
const getCycleDayNumber = cycleModule().getCycleDayNumber
@@ -69,8 +69,8 @@ export default class Home extends Component {
</View>
<View style={styles.homeButton}>
<Button
onPress={() => deleteAll()}
title="delete everything">
onPress={() => fillWithDummyData()}
title="fill with example data">
</Button>
</View>
</View>