react-native/React
Emil Sjolander 0a9b6bedb3 BREAKING - Fix unconstraint sizing in main axis
Summary:
This fixes measuring of items in the main axis of a container. Previously items were in a lot of cases measured with UNSPECIFIED instead of AT_MOST. This was to support scrolling containers. The correct way to handle scrolling containers is to instead provide them with their own overflow value to activate this behavior. This is also similar to how the web works.

This is a breaking change. Most of your layouts will continue to function as before however some of them might not. Typically this is due to having a `flex: 1` style where it is currently a no-op due to being measured with an undefined size but after this change it may collapse your component to take zero size due to the implicit `flexBasis: 0` now being correctly treated. Removing the bad `flex: 1` style or changing it to `flexGrow: 1` should solve most if not all layout issues your see after this diff.

Reviewed By: majak

Differential Revision: D3876927

fbshipit-source-id: 81ea1c9d6574dd4564a3333f1b3617cf84b4022f
2016-09-26 06:13:56 -07:00
..
Base BREAKING - Fix unconstraint sizing in main axis 2016-09-26 06:13:56 -07:00
CSSLayout BREAKING - Fix unconstraint sizing in main axis 2016-09-26 06:13:56 -07:00
Executors Export native modules without RCT or RK prefix 2016-09-23 11:14:11 -07:00
Modules Improve RCTNSErrorFromJSError 2016-09-16 06:28:48 -07:00
Profiler Scope RCTReloadNotification to one bridge 2016-09-07 17:28:47 -07:00
React.xcodeproj Improve RCTNSErrorFromJSError 2016-09-16 06:28:48 -07:00
Views BREAKING - Fix unconstraint sizing in main axis 2016-09-26 06:13:56 -07:00