<Image /> in "@shopify/post-purchase-ui-extensions"

yomnashaban
New Member
1 0 0

Hello, I'm trying to use the aspectRatio in <Image/> from @Shopify/post-purchase-ui-extensions, to resize my images.

I tried using it as aspectRatio={2} and aspectRatio={2:1}, also used it with fit ="cover" and fit ="contain" , however I always end up getting that the rendered aspect ratio is 0*0 in my console, any help with how to correctly use it? or how to resize images in post purchase app extensions in general ?

aspectRatio.png

Replies 0 (0)