From efa74c4c2328b078e7b970abb2d248647b0450d5 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Sun, 15 Mar 2020 20:49:06 -0700 Subject: [PATCH] Fabric: Removing applying `zIndex` to `layout.zIndex` on iOS mounting layer Summary: Now we have `zIndex` feature implemented in the Core, we don't need to have it implemented on the mounting layer. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D20432156 fbshipit-source-id: f77b96919bab21b6628472b9fe58c5f4e3233318 --- .../Mounting/ComponentViews/View/RCTViewComponentView.mm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm index 39dc08e2fca..b4d8a36b995 100644 --- a/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm @@ -188,11 +188,6 @@ using namespace facebook::react; needsInvalidateLayer = YES; } - // `zIndex` - if (oldViewProps.zIndex != newViewProps.zIndex) { - self.layer.zPosition = (CGFloat)newViewProps.zIndex; - } - // `border` if (oldViewProps.borderStyles != newViewProps.borderStyles || oldViewProps.borderRadii != newViewProps.borderRadii || oldViewProps.borderColors != newViewProps.borderColors) {