AspectRatio is a property introduced by Yoga.
AspectRatio solves the problem of knowing one dimension of an element and an aspect ratio, this is very common when it comes to videos, images, and other media types.
AspectRatio accepts any floating point value > 0, the default is undefined.
AspectRatiois defined as the ratio between the width and the height of a node e.g. if a node has an aspect ratio of 2 then its width is twice the size of its height.
Maxdimensions of an item.
AspectRatiohas higher priority than
Heightare set then the cross dimension is overridden.