Socket
Socket
Sign inDemoInstall

react-native-date-picker

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.3 to 4.1.4

2

package.json
{
"name": "react-native-date-picker",
"version": "4.1.3",
"version": "4.1.4",
"description": "A datetime picker for React Native. In-modal or inlined. Supports Android and iOS.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -21,4 +21,7 @@ import React from 'react'

const props = this.getProps()
const isClosed = this._isCurrentlyClosed();
this.previousProps = props;
if (props.modal) {
if (props.open) {
if (props.open && isClosed) {
NativeModules.RNDatePicker.openPicker(

@@ -36,2 +39,4 @@ props,

_isCurrentlyClosed = () => !this.previousProps || !this.previousProps.open
getProps = () => ({

@@ -38,0 +43,0 @@ ...this.props,

@@ -48,5 +48,7 @@ import React, { useEffect } from 'react'

const props = this._toIosProps(this.props)
const isClosed = this._isCurrentlyClosed();
this.previousProps = props;
if (props.modal) {
if (props.open) {
if (props.open && isClosed) {
NativeModules.RNDatePickerManager.openPicker(

@@ -74,2 +76,4 @@ props,

}
_isCurrentlyClosed = () => !this.previousProps || !this.previousProps.open
}

@@ -76,0 +80,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc