react-native/ReactCommon
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
..
cxxreact Don't assume JS integers are dynamic Ints 2017-08-18 14:45:06 -07:00
jschelpers Add locking around calls from JSCExecuter 2017-08-08 05:07:25 -07:00
microprofiler Remove xcode_public_headers_symlinks from RN BUCK files 2017-07-06 12:16:20 -07:00
yoga BREAKING: Change aspect ratio behavior 2017-08-21 03:14:42 -07:00
DEFS Fix Travis CI runs 2017-06-02 09:03:18 -07:00