zIndex prop was removed from RCTShadowView

Summary:
This was leftovers from old implementation of zIndex feature.
Janic janicduplessis refactored this and moved all logic to UIView layer, so we don't need this prop anymore in shadow realm.
More info: https://github.com/facebook/react-native/pull/14011

Reviewed By: mmmulani

Differential Revision: D6574414

fbshipit-source-id: 2cae19350765689784d7884ed875878d39b4e3f1
This commit is contained in:
Valentin Shergin 2017-12-18 11:41:24 -08:00 committed by Facebook Github Bot
parent 4803419dc8
commit 2789ba016b
3 changed files with 0 additions and 16 deletions

View File

@ -170,11 +170,6 @@ typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, UIView *> *viewRegistry
@property (nonatomic, assign) float aspectRatio; @property (nonatomic, assign) float aspectRatio;
/**
* z-index, used to override sibling order in the view
*/
@property (nonatomic, assign) NSInteger zIndex;
/** /**
* Interface direction (LTR or RTL) * Interface direction (LTR or RTL)
*/ */

View File

@ -792,16 +792,6 @@ RCT_STYLE_PROPERTY(AspectRatio, aspectRatio, AspectRatio, float)
[self dirtyPropagation]; [self dirtyPropagation];
} }
- (void)setZIndex:(NSInteger)zIndex
{
_zIndex = zIndex;
if (_superview) {
// Changing zIndex means the subview order of the parent needs updating
_superview->_didUpdateSubviews = YES;
[_superview dirtyPropagation];
}
}
- (void)didUpdateReactSubviews - (void)didUpdateReactSubviews
{ {
// Does nothing by default // Does nothing by default

View File

@ -336,7 +336,6 @@ RCT_EXPORT_SHADOW_PROPERTY(display, YGDisplay)
RCT_EXPORT_SHADOW_PROPERTY(onLayout, RCTDirectEventBlock) RCT_EXPORT_SHADOW_PROPERTY(onLayout, RCTDirectEventBlock)
RCT_EXPORT_SHADOW_PROPERTY(zIndex, NSInteger)
RCT_EXPORT_SHADOW_PROPERTY(direction, YGDirection) RCT_EXPORT_SHADOW_PROPERTY(direction, YGDirection)
@end @end