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

react-native-date-input

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-date-input - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Changelog

## [1.0.11] - 2020-06-01
### Changed
- Fixed issue where `defaultValue` wouldn't always update
## [1.0.10] - 2020-04-27

@@ -10,0 +16,0 @@

12

DateInput.js

@@ -1,2 +0,2 @@

import React, { useState } from 'react';
import React from 'react';

@@ -30,7 +30,11 @@ import {

}) => {
const [date, setDate] = useState(defaultDate);
const [value, setValue] = useState(defaultValue);
const [visible, setVisible] = useState(false);
const [date, setDate] = React.useState(defaultDate);
const [value, setValue] = React.useState(defaultValue);
const [visible, setVisible] = React.useState(false);
const ANDROID = Platform.OS === 'android';
React.useEffect(() => {
setValue(defaultValue);
}, [defaultValue]);
const open = async () => {

@@ -37,0 +41,0 @@ Keyboard.dismiss();

{
"name": "react-native-date-input",
"version": "1.0.10",
"version": "1.0.11",
"description": "A simple React Native date input component that uses DatePickerAndroid and DatePickerIOS to select dates",

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

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