react-native-calendars-fei
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "react-native-calendars-fei", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "description": "React Native Calendar Components", |
@@ -167,4 +167,4 @@ import React, {Component} from 'react'; | ||
const currentDate = (this.state.currentMonth.length < 3) ? this.state.currentMonth[0].clone() : this.state.currentMonth[1].clone() | ||
if(scrollX >= this.props.calendarWidth) { | ||
const isGonextMonth = isAndroid ? scrollX >= this.props.calendarWidth : scrollX > this.props.calendarWidth | ||
if(isGonextMonth) { | ||
const newDate = currentDate.addMonths(2).clone() | ||
@@ -193,3 +193,3 @@ newMonth.push(newDate) | ||
} | ||
if (newMonth.length === 3){ | ||
if (newMonth.length >= 3){ | ||
this.scrollView.scrollTo({ x: this.props.calendarWidth, y: 0, animated: isAndroid }) | ||
@@ -196,0 +196,0 @@ } |
116559
2755