react-native/Libraries/StyleSheet
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
..
__tests__ re-enable and fix tests 2016-09-03 01:13:37 -07:00
ColorPropType.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
EdgeInsetsPropType.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
LayoutPropTypes.js BREAKING - Fix unconstraint sizing in main axis 2016-09-26 06:13:56 -07:00
PointPropType.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
StyleSheet.js Updated documentation for hairlineWidth 2016-08-25 08:00:24 -07:00
StyleSheetPropType.js Flowify Libraries/StyleSheet and Libraries/Text 2015-03-24 16:22:59 -08:00
StyleSheetTypes.js Unrevert D3518381 2016-07-06 12:58:41 -07:00
StyleSheetValidation.js Upgrade to React v15.3.0-rc.2 2016-07-21 09:13:29 -07:00
TransformPropTypes.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
flattenStyle.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
normalizeColor.js Add support for number as colors 2016-02-08 04:04:38 -08:00
processColor.js Change internal format from 0xaarrggbb to 0xrrggbbaa 2016-02-07 10:14:29 -08:00
processTransform.js Accept transforms list instead of matrix for transform view parameter. 2016-08-05 10:58:42 -07:00
setNormalizedColorAlpha.js Replace usages of hexToRgb with setNormalizedColorAlpha 2016-02-09 14:58:34 -08:00