Skip to content

Commit

Permalink
fix: add aspectRatio style property (#2276)
Browse files Browse the repository at this point in the history
* fix: add `aspectRatio` style property

This is supported by Yoga, and defined the same way than in `react-native`'s types

* add changeset

---------

Co-authored-by: Dmitry Ivakhnenko <jeetiss@yandex.ru>
  • Loading branch information
renchap and jeetiss committed May 31, 2023
1 parent efd8583 commit 1e1fbdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-parrots-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-pdf/types': patch
---

add `aspectRatio` style property
1 change: 1 addition & 0 deletions packages/types/style.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface Style {

// Layout

aspectRatio?: number | string;
bottom?: number | string;
display?: 'flex' | 'none';
left?: number | string;
Expand Down

0 comments on commit 1e1fbdc

Please sign in to comment.