Make calendar vertically scrollable

This commit is contained in:
Julia Friesel
2018-08-09 14:08:46 +02:00
parent f5b3716191
commit dcff1a0362
+2 -2
View File
@@ -1,6 +1,6 @@
import React, { Component } from 'react' import React, { Component } from 'react'
import { View } from 'react-native' import { View } from 'react-native'
import { Calendar } from 'react-native-calendars' import { CalendarList } from 'react-native-calendars'
import * as styles from '../styles' import * as styles from '../styles'
import { getOrCreateCycleDay, bleedingDaysSortedByDate } from '../db' import { getOrCreateCycleDay, bleedingDaysSortedByDate } from '../db'
@@ -35,7 +35,7 @@ export default class CalendarView extends Component {
render() { render() {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Calendar <CalendarList
onDayPress={ this.passDateToDayView.bind(this) } onDayPress={ this.passDateToDayView.bind(this) }
markedDates = { this.state.bleedingDaysInCalFormat } markedDates = { this.state.bleedingDaysInCalFormat }
markingType = {'period'} markingType = {'period'}