native-pytech 1.0.177 → 1.0.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ export default memo(({ itemKey, label, defaultValue, minDate, maxDate, onValueCh
9
9
  const keyRef = useRef(itemKey);
10
10
  useEffect(() => {
11
11
  keyRef.current = registerItem(itemKey);
12
+ _onValueChange(selection ?? new Date());
12
13
  }, []);
13
14
  // Hooks
14
15
  useEffect(() => setSelection(defaultValue), [defaultValue]);
@@ -14,6 +14,7 @@ export default memo(({ itemKey, label, defaultValue, minDate, maxDate, onValueCh
14
14
  const keyRef = useRef(itemKey);
15
15
  useEffect(() => {
16
16
  keyRef.current = registerItem(itemKey);
17
+ _onValueChange(Formats.dateToTextFormat(selection, 'yyyy-MM-dd'));
17
18
  }, []);
18
19
  // Hooks
19
20
  useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.177",
3
+ "version": "1.0.178",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",