Make calendar vertically scrollable
This commit is contained in:
@@ -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'}
|
||||||
|
|||||||
Reference in New Issue
Block a user