Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-calendars-fei

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-calendars-fei - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

2

package.json
{
"name": "react-native-calendars-fei",
"version": "0.0.3",
"version": "0.1.0",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "description": "React Native Calendar Components",

@@ -111,3 +111,2 @@ import React, {Component} from 'react';

componentWillUpdate(nextProps, nextState) {
const current= parseDate(this.props.current).clone();
const nextCurrentMonth= parseDate(nextState.currentMonth);

@@ -117,2 +116,9 @@ const currentDateString = nextState.currentMonth[1].toString('yyyy MM')

const minDate = parseDate(this.props.minDate);
let current;
if (this.props.current) {
current= parseDate(this.props.current).clone();
}
if (nextCurrentMonth !== this.state.currentMonth

@@ -123,3 +129,4 @@ && currentDateString !== minDateString

const currentSelectDay = nextState.currentMonth[1].clone().setDate(current.getDate())
let currentSelectDay = nextState.currentMonth[1].clone();
if (current) currentSelectDay = currentSelectDay.setDate(current.getDate())

@@ -129,3 +136,7 @@ while (currentSelectDay.getMonth() !== nextState.currentMonth[1].clone().getMonth()) {

}
this._handleDayInteraction(currentSelectDay, this.props.onDayPress);
if (currentSelectDay < minDate){
this._handleDayInteraction(minDate, this.props.onDayPress)
} else {
this._handleDayInteraction(currentSelectDay, this.props.onDayPress)
};
}

@@ -216,3 +227,4 @@ }

state = 'disabled';
} else if (dateutils.sameDate(day, XDate())) {
}
if (dateutils.sameDate(day, XDate())) {
state = 'today';

@@ -219,0 +231,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc