Skip to content

Commit

Permalink
Merge pull request #1638 from gluestack/release/@gluestack-ui/config@…
Browse files Browse the repository at this point in the history
…1.0.12

release: @gluestack-ui/config version 1.0.12
  • Loading branch information
Viraj-10 authored Jan 15, 2024
2 parents 360840e + f0b64e3 commit 5d8f292
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @gluestack-ui/config

## 1.0.12

### Patch Changes

- Image height and width issue.

## 1.0.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gluestack-ui/config",
"version": "1.0.11",
"version": "1.0.12",
"main": "build/gluestack-ui.config.js",
"types": "build/gluestack-ui.config.d.ts",
"module": "build/gluestack-ui.config",
Expand Down
10 changes: 10 additions & 0 deletions packages/config/src/theme/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import { createStyle } from '@gluestack-style/react';

export const Image = createStyle({
maxWidth: '$full',
_web: {
props: {
// set property to revert-layer as RNW always set image height width inline
style: {
height: 'revert-layer',
width: 'revert-layer',
},
},
},
variants: {
size: {
'2xs': {
Expand Down Expand Up @@ -44,6 +53,7 @@ export const Image = createStyle({
},
},
},

defaultProps: {
size: 'md',
},
Expand Down

0 comments on commit 5d8f292

Please sign in to comment.