diff --git a/React/Views/RCTShadowView.h b/React/Views/RCTShadowView.h index 6b46c4f35..f3b334e63 100644 --- a/React/Views/RCTShadowView.h +++ b/React/Views/RCTShadowView.h @@ -170,11 +170,6 @@ typedef void (^RCTApplierBlock)(NSDictionary *viewRegistry @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) */ diff --git a/React/Views/RCTShadowView.m b/React/Views/RCTShadowView.m index 56c363f96..b3d9d6910 100644 --- a/React/Views/RCTShadowView.m +++ b/React/Views/RCTShadowView.m @@ -792,16 +792,6 @@ RCT_STYLE_PROPERTY(AspectRatio, aspectRatio, AspectRatio, float) [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 { // Does nothing by default diff --git a/React/Views/RCTViewManager.m b/React/Views/RCTViewManager.m index 2aba8a754..99c40a7fd 100644 --- a/React/Views/RCTViewManager.m +++ b/React/Views/RCTViewManager.m @@ -336,7 +336,6 @@ RCT_EXPORT_SHADOW_PROPERTY(display, YGDisplay) RCT_EXPORT_SHADOW_PROPERTY(onLayout, RCTDirectEventBlock) -RCT_EXPORT_SHADOW_PROPERTY(zIndex, NSInteger) RCT_EXPORT_SHADOW_PROPERTY(direction, YGDirection) @end