From dcff1a03621e2a16d590f38d1357a55a12a17ade Mon Sep 17 00:00:00 2001 From: Julia Friesel <julia.friesel@gmail.com> Date: Thu, 9 Aug 2018 14:08:46 +0200 Subject: [PATCH] Make calendar vertically scrollable --- components/calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/calendar.js b/components/calendar.js index 67e52997..b447bf24 100644 --- a/components/calendar.js +++ b/components/calendar.js @@ -1,6 +1,6 @@ import React, { Component } from 'react' import { View } from 'react-native' -import { Calendar } from 'react-native-calendars' +import { CalendarList } from 'react-native-calendars' import * as styles from '../styles' import { getOrCreateCycleDay, bleedingDaysSortedByDate } from '../db' @@ -35,7 +35,7 @@ export default class CalendarView extends Component { render() { return ( <View style={styles.container}> - <Calendar + <CalendarList onDayPress={ this.passDateToDayView.bind(this) } markedDates = { this.state.bleedingDaysInCalFormat } markingType = {'period'} -- GitLab