react-native/Libraries/Components/View
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
..
__mocks__ First snapshot test, rendering "native" React component. 2016-06-29 21:58:17 -07:00
ReactNativeStyleAttributes.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativeViewAttributes.js Refactor Attribute Processing (Step 2) 2015-10-06 10:28:35 -07:00
ShadowPropTypesIOS.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
View.js Fix View documentation typo 2016-09-26 06:13:55 -07:00
ViewStylePropTypes.js BREAKING - Fix unconstraint sizing in main axis 2016-09-26 06:13:56 -07:00