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", diff --git a/packages/react/src/core/convert-utility-to-sx.ts b/packages/react/src/core/convert-utility-to-sx.ts index 84f6f230..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.includes(reservedKey)) { + } else if ( + Array.isArray(descendants) && + descendants.includes(reservedKey) + ) { return { propPath: [reservedKey], value: propValue,