react-native-calendars-fei
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "react-native-calendars-fei", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "description": "React Native Calendar Components", |
@@ -181,4 +181,6 @@ import React, {Component} from 'react'; | ||
const newDate = currentDate.addMonths(-2).clone() | ||
newMonth.unshift(newDate) | ||
if(this.state.currentMonth.length >= 3)newMonth.pop() | ||
if(this.state.currentMonth.length >= 3) { | ||
newMonth.unshift(newDate) | ||
newMonth.pop() | ||
} | ||
this.setState({ | ||
@@ -188,3 +190,5 @@ currentMonth: newMonth, | ||
} | ||
this.scrollView.scrollTo({ x: this.props.calendarWidth, y: 0, animated: isAndroid }) | ||
if (this.state.currentMonth.length >= 3){ | ||
this.scrollView.scrollTo({ x: this.props.calendarWidth, y: 0, animated: isAndroid }) | ||
} | ||
} | ||
@@ -191,0 +195,0 @@ |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
react-native-calendars |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116541
2752
1