Skip to content

Commit f6d75cf

Browse files
committed
patch
1 parent 7d13b23 commit f6d75cf

File tree

16 files changed

+184
-167
lines changed

16 files changed

+184
-167
lines changed

apps/demo-community/package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/demo-community/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"react": "18.1.0",
1818
"react-native": "0.70.6",
1919
"react-native-svg": "^12.1.1",
20-
"rn-declarative": "^0.0.93",
21-
"rn-declarative-eva": "^0.0.63"
20+
"rn-declarative": "^0.1.0",
21+
"rn-declarative-eva": "^0.1.0"
2222
},
2323
"devDependencies": {
2424
"@babel/core": "^7.12.9",

apps/demo-expo/package-lock.json

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/demo-expo/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"react-native": "0.74.1",
1111
"react-native-svg": "15.2.0",
1212
"react-native-web": "~0.19.6",
13-
"rn-declarative": "^0.0.93",
14-
"rn-declarative-eva": "^0.0.63"
13+
"rn-declarative": "^0.1.0",
14+
"rn-declarative-eva": "^0.1.0"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.19.3",

apps/starter-rnr/package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/starter-rnr/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"react-native-screens": "~3.31.1",
6363
"react-native-svg": "15.2.0",
6464
"react-native-web": "~0.19.6",
65-
"rn-declarative": "^0.0.93",
65+
"rn-declarative": "^0.1.0",
6666
"tailwind-merge": "^2.2.1",
6767
"tailwindcss": "3.3.5",
6868
"tailwindcss-animate": "^1.0.7",

apps/starter-rnr/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -7641,10 +7641,10 @@ rimraf@~2.6.2:
76417641
dependencies:
76427642
glob "^7.1.3"
76437643

7644-
rn-declarative@^0.0.93:
7645-
version "0.0.93"
7646-
resolved "https://registry.npmjs.org/rn-declarative/-/rn-declarative-0.0.93.tgz"
7647-
integrity sha512-TCuFs2Sshg/eB9CsnJ49eSmd6QmaWXotXUYZN20ddgkJJKUnovEhlq1WFYXt4KFhk41hpk76gdTxF5JrXddiNQ==
7644+
rn-declarative@^0.1.0:
7645+
version "0.1.0"
7646+
resolved "https://registry.npmjs.org/rn-declarative/-/rn-declarative-0.1.0.tgz"
7647+
integrity sha512-kIE0WJzFnL4j6nWsKH4ipZ4KiRwdSJ/dc0f8PCQMksIPQKwK2f5mMa3Xaag+g1Mx3vnc9TeNJhvzZtd11fgHGw==
76487648
dependencies:
76497649
rimraf "3.0.2"
76507650

packages/rn-declarative-eva/package-lock.json

+10-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/rn-declarative-eva/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rn-declarative-eva",
3-
"version": "0.0.63",
3+
"version": "0.1.0",
44
"description": "A responsive layout for the react-native",
55
"private": false,
66
"author": {
@@ -77,7 +77,7 @@
7777
"react-native": "0.71.6",
7878
"react-native-svg": "9.4.0",
7979
"typescript": "4.6.2",
80-
"rn-declarative": "0.0.93"
80+
"rn-declarative": "0.1.0"
8181
},
8282
"dependencies": {
8383
"rimraf": "3.0.2"

packages/rn-declarative/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/rn-declarative/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rn-declarative",
3-
"version": "0.0.94",
3+
"version": "0.1.0",
44
"description": "A responsive layout for the react-native",
55
"private": false,
66
"author": {

packages/rn-declarative/src/components/One/components/makeField/hooks/useFieldMemory.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useMemo } from 'react';
22

33
import { Value } from '../../../../../model/IField';
4+
import IAnything from '../../../../../model/IAnything';
45

56
/**
67
* Represents the interface for managing the memory state in the application.
@@ -14,7 +15,7 @@ interface IMemory {
1415
pressDisabled: boolean;
1516
fieldName: string;
1617
isMounted: boolean;
17-
lastDebouncedValue: Value;
18+
lastObject: IAnything;
1819
fieldReadonly$: boolean;
1920
upperReadonly$: boolean;
2021
debouncedValue$: Value;
@@ -45,7 +46,7 @@ interface IMemoryData extends Omit<IMemory, keyof {
4546
* @param memoryData - The data needed to create the memory object.
4647
* @param memoryData.prefix - The prefix to use for the memory field name.
4748
* @param memoryData.name - The name of the memory field.
48-
* @param memoryData.lastDebouncedValue - The last debounced value of the memory field.
49+
* @param memoryData.lastObject - The last debounced value of the memory field.
4950
* @param memoryData.debouncedValue$ - The observable for the debounced value of the memory field.
5051
* @param memoryData.fieldReadonly$ - The observable for the readonly state of the memory field.
5152
* @param memoryData.invalid$ - The observable for the invalid state of the memory field.
@@ -57,7 +58,7 @@ export const useFieldMemory = ({
5758
prefix,
5859
name,
5960
pressDisabled,
60-
lastDebouncedValue,
61+
lastObject,
6162
debouncedValue$,
6263
fieldReadonly$,
6364
invalid$,
@@ -72,7 +73,7 @@ export const useFieldMemory = ({
7273
* @property objectUpdate - Represents whether object has been updated.
7374
* @property initComplete - Represents whether initialization has been completed.
7475
* @property fieldName - Represents the field name.
75-
* @property lastDebouncedValue - Represents the last debounced value.
76+
* @property lastObject - Represents the last debounced value.
7677
* @property isMounted - Represents whether the component is mounted.
7778
* @property debouncedValue$ - Represents the debounced value.
7879
* @property fieldReadonly$ - Represents the field readonly value.
@@ -85,7 +86,7 @@ export const useFieldMemory = ({
8586
objectUpdate: false,
8687
initComplete: false,
8788
fieldName: `${prefix}(${name || 'unknown'})`,
88-
lastDebouncedValue,
89+
lastObject,
8990
isMounted: true,
9091
pressDisabled: false,
9192
debouncedValue$: null as never,

0 commit comments

Comments
 (0)