From 8a338c4d78fb81944268e54bc544d7162b44357d Mon Sep 17 00:00:00 2001 From: Viraj-10 Date: Mon, 4 Dec 2023 14:58:37 +0530 Subject: [PATCH 1/3] fix: inline prop utility prop --- packages/react/src/core/convert-utility-to-sx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/core/convert-utility-to-sx.ts b/packages/react/src/core/convert-utility-to-sx.ts index 84f6f230..3c3d1551 100644 --- a/packages/react/src/core/convert-utility-to-sx.ts +++ b/packages/react/src/core/convert-utility-to-sx.ts @@ -65,7 +65,7 @@ export const checkAndReturnUtilityProp = ( propPath: [reservedKeys[reservedKey].key], value: propValue, }; - } else if (descendants.includes(reservedKey)) { + } else if (descendants && descendants.includes(reservedKey)) { return { propPath: [reservedKey], value: propValue, From b52cb23b6c1ac9debf14325d61516b45dc33305f Mon Sep 17 00:00:00 2001 From: Viraj-10 Date: Mon, 4 Dec 2023 15:04:37 +0530 Subject: [PATCH 2/3] fix: is array condition --- packages/react/src/core/convert-utility-to-sx.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react/src/core/convert-utility-to-sx.ts b/packages/react/src/core/convert-utility-to-sx.ts index 3c3d1551..8551e555 100644 --- a/packages/react/src/core/convert-utility-to-sx.ts +++ b/packages/react/src/core/convert-utility-to-sx.ts @@ -65,7 +65,10 @@ export const checkAndReturnUtilityProp = ( propPath: [reservedKeys[reservedKey].key], value: propValue, }; - } else if (descendants && descendants.includes(reservedKey)) { + } else if ( + Array.isArray(descendants) && + descendants.includes(reservedKey) + ) { return { propPath: [reservedKey], value: propValue, From b4cfde27797924430f6b6277838ac33d7c7c7df8 Mon Sep 17 00:00:00 2001 From: Viraj-10 Date: Mon, 4 Dec 2023 15:23:58 +0530 Subject: [PATCH 3/3] chore: @gluestack-style/react version bump 1.0.21 --- packages/react/CHANGELOG.md | 6 ++++++ packages/react/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index daa21388..fb66e2a4 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @gluestack-style/react +## 1.0.21 + +### Patch Changes + +- fix: utility props + ## 1.0.20 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index a5afe34e..f3524aaf 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@gluestack-style/react", "description": "A universal & performant styling library for React Native, Next.js & React", - "version": "1.0.20", + "version": "1.0.21", "keywords": [ "React Native", "Next.js",