Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #555 from gluestack/release/@gluestack-style/react…
Browse files Browse the repository at this point in the history
…@1.0.21

Release/@gluestack style/[email protected]
  • Loading branch information
ankit-tailor authored Dec 4, 2023
2 parents 6776c34 + b4cfde2 commit c8fa704
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @gluestack-style/react

## 1.0.21

### Patch Changes

- fix: utility props

## 1.0.20

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion packages/react/src/core/convert-utility-to-sx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c8fa704

Please sign in to comment.