Remove min/max Width/Height in the docs
Summary: An initial implementation was done on css-layout but isn't working correctly on many cases. The binding from React Native has been removed a long time ago. Let's not confuse people and remove it from the docs :) Closes https://github.com/facebook/react-native/pull/5522 Reviewed By: svcscm Differential Revision: D2859665 Pulled By: vjeux fb-gh-sync-id: 4aa008dd93a6cea6b79a7bce444c94148791eee4
This commit is contained in:
parent
af2f40754a
commit
2529179769
|
@ -27,11 +27,7 @@ var ReactPropTypes = require('ReactPropTypes');
|
|||
*/
|
||||
var LayoutPropTypes = {
|
||||
width: ReactPropTypes.number,
|
||||
maxWidth: ReactPropTypes.number,
|
||||
minWidth: ReactPropTypes.number,
|
||||
height: ReactPropTypes.number,
|
||||
maxHeight: ReactPropTypes.number,
|
||||
minHeight: ReactPropTypes.number,
|
||||
top: ReactPropTypes.number,
|
||||
left: ReactPropTypes.number,
|
||||
right: ReactPropTypes.number,
|
||||
|
|
|
@ -63,10 +63,6 @@ typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, UIView *> *viewRegistry
|
|||
|
||||
@property (nonatomic, assign) CGFloat width;
|
||||
@property (nonatomic, assign) CGFloat height;
|
||||
@property (nonatomic, assign) CGFloat minWidth;
|
||||
@property (nonatomic, assign) CGFloat minHeight;
|
||||
@property (nonatomic, assign) CGFloat maxWidth;
|
||||
@property (nonatomic, assign) CGFloat maxHeight;
|
||||
@property (nonatomic, assign) CGRect frame;
|
||||
|
||||
- (void)setTopLeft:(CGPoint)topLeft;
|
||||
|
|
|
@ -507,10 +507,6 @@ RCT_BORDER_PROPERTY(Right, RIGHT)
|
|||
|
||||
RCT_DIMENSIONS_PROPERTY(Width, width, WIDTH, dimensions)
|
||||
RCT_DIMENSIONS_PROPERTY(Height, height, HEIGHT, dimensions)
|
||||
RCT_DIMENSIONS_PROPERTY(MinWidth, minWidth, WIDTH, minDimensions)
|
||||
RCT_DIMENSIONS_PROPERTY(MinHeight, minHeight, HEIGHT, minDimensions)
|
||||
RCT_DIMENSIONS_PROPERTY(MaxWidth, maxWidth, WIDTH, maxDimensions)
|
||||
RCT_DIMENSIONS_PROPERTY(MaxHeight, maxHeight, HEIGHT, maxDimensions)
|
||||
|
||||
// Position
|
||||
|
||||
|
|
|
@ -239,10 +239,6 @@ RCT_EXPORT_SHADOW_PROPERTY(left, CGFloat);
|
|||
|
||||
RCT_EXPORT_SHADOW_PROPERTY(width, CGFloat)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(height, CGFloat)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(minWidth, CGFloat)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(minHeight, CGFloat)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(maxWidth, CGFloat)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(maxHeight, CGFloat)
|
||||
|
||||
RCT_EXPORT_SHADOW_PROPERTY(borderTopWidth, CGFloat)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(borderRightWidth, CGFloat)
|
||||
|
|
Loading…
Reference in New Issue