Revert "[React Native] Remove layout-only nodes"

This commit is contained in:
chaceliang
2015-06-25 14:30:06 -07:00
parent 7963add0d5
commit 7159a4e947
13 changed files with 113 additions and 2022 deletions

View File

@@ -279,7 +279,6 @@ var ScrollView = React.createClass({
var contentContainer =
<View
collapsible={false}
ref={INNERVIEW}
style={contentContainerStyle}
removeClippedSubviews={this.props.removeClippedSubviews}>

View File

@@ -77,12 +77,6 @@ var View = React.createClass({
},
propTypes: {
/**
* When false, indicates that the view should not be collapsed, even if it is
* layout-only. Defaults to true.
*/
collapsible: PropTypes.bool,
/**
* When true, indicates that the view is an accessibility element. By default,
* all the touchable elements are accessible.

View File

@@ -24,7 +24,6 @@ ReactNativeViewAttributes.UIView = {
onLayout: true,
onAccessibilityTap: true,
onMagicTap: true,
collapsible: true,
};
ReactNativeViewAttributes.RCTView = merge(

View File

@@ -20,11 +20,6 @@
}
}
- (BOOL)isLayoutOnly
{
return YES;
}
- (NSString *)description
{
NSString *superDescription = super.description;