native-pytech 1.0.98 → 1.0.99

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.
@@ -25,7 +25,7 @@ export default memo(({ children, onSave }) => {
25
25
  const onPressSave = useCallback(async () => {
26
26
  // Obtengo los valores del store
27
27
  const values = store.values.peek();
28
- const valuesToSave = Object.fromEntries(Object.entries(values).map(([key, value]) => [key, value.value ?? null]));
28
+ const valuesToSave = Object.values(values).map(value => value.value ?? null);
29
29
  // Llamo a la función onSave
30
30
  const result = await onSave?.(valuesToSave);
31
31
  if (result === false)
@@ -7,7 +7,7 @@ type Props = {
7
7
  Function to be called when the user saves the changes.
8
8
  If the function returns false, the user will not be redirected to the previous screen.
9
9
  */
10
- onSave?: (items: Record<string, string | null | Date>) => boolean | void | Promise<boolean | void>;
10
+ onSave?: (items: (string | null | Date)[]) => boolean | void | Promise<boolean | void>;
11
11
  };
12
12
  export type Value = {
13
13
  value?: string | null | Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "build": "node scripts/build.js",
11
11
  "typecheck": "tsc --noEmit",
12
12
  "prepublishOnly": "npm run build",
13
- "release": "dev git && npm version patch && npm publish"
13
+ "release": "dev git && npm version patch && npm publish && dev git"
14
14
  },
15
15
  "files": [
16
16
  "dist",