react-native-date-input
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -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 @@ |
@@ -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", |
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
8359
154