react-native/ReactCommon/yoga
Emil Sjolander 67c160cc6c BREAKING: Change aspect ratio behavior
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
2017-08-21 03:14:42 -07:00
..
yoga BREAKING: Change aspect ratio behavior 2017-08-21 03:14:42 -07:00
Android.mk Add YGEnums to fix gradle build 2017-04-04 12:01:43 -07:00
BUCK Apply auto-formatter for BUCK files in fbandroid. 2017-02-27 14:04:56 -08:00
Yoga.podspec Apple TV Cocoapods support 2017-07-18 15:15:59 -07:00