native-pytech 1.0.179 → 1.0.182

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.
@@ -75,9 +75,9 @@ const phoneToText = (phone) => {
75
75
  }
76
76
  return extra ? `${base}${extra}` : base;
77
77
  };
78
- const dateToTextFormat = (date, format = 'YYYY-MM-DD') => {
78
+ const dateToTextFormat = (date, format = 'yyyy-MM-dd') => {
79
79
  const _format = format.replaceAll('Y', 'y').replaceAll('m', 'M').replaceAll('D', 'd');
80
- return DateFormatter(date, _format);
80
+ return DateFormatter(date, format);
81
81
  };
82
82
  // ------------------- Export -------------------
83
83
  const Formats = {
@@ -1,4 +1,4 @@
1
- import { Section, DatePicker } from '@expo/ui/swift-ui';
1
+ import { DatePicker } from '@expo/ui/swift-ui';
2
2
  import { memo, useCallback, useEffect, useRef, useState } from 'react';
3
3
  import { environment } from '@expo/ui/swift-ui/modifiers';
4
4
  import { usePage } from '../../context/page';
@@ -22,10 +22,8 @@ export default memo(({ itemKey, label, selection, defaultValue, minDate, maxDate
22
22
  });
23
23
  onValueChange?.(value);
24
24
  }, []);
25
- return (<Section>
26
- <DatePicker title={label} selection={_selection ?? defaultValue} onDateChange={_onValueChange} modifiers={[environment('locale', 'es_ES')]} range={{
25
+ return (<DatePicker title={label} selection={_selection ?? defaultValue} onDateChange={_onValueChange} modifiers={[environment('locale', 'es_ES')]} range={{
27
26
  start: minDate,
28
27
  end: maxDate,
29
- }}/>
30
- </Section>);
28
+ }}/>);
31
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.179",
3
+ "version": "1.0.182",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",