67c160cc6c
Summary: == Before == - Aspect ratio would do its best to fit within it's parent constraints - Aspect ratio would prioritize `alignItems: stretch` over other sizing properties. == After == - Aspect ratio is allowed to make a node grow past its parent constraints. This matches many other aspects of flexbox where parent constraints are not treated as hard constraints but rather as suggestions. - Aspect ratio only takes `alignItems: stretch` into account if no other size definition is defined. This matches the interaction of other properties with `alignItems: stretch`. == Updating your code == **You probably don't need to do anything** but in case something does break in your product it should be as easy as adding `{width: '100%', height: '100%', flexShrink: 1}` to the style declaring the `aspectRatio`. Reviewed By: gkassabli Differential Revision: D5639187 fbshipit-source-id: 603e8fcc3373f0b7f2461da2dad1625ab59dcb19 |
||
---|---|---|
.. | ||
cxxreact | ||
jschelpers | ||
microprofiler | ||
yoga | ||
DEFS |