From c4356db5734e52d55b318db09ff12b5cf23eb418 Mon Sep 17 00:00:00 2001 From: Wojciech Rok <58606210+tshmieldev@users.noreply.github.com> Date: Mon, 19 Oct 2026 09:47:40 -0700 Subject: [PATCH] Invalidate the layer when borderCurve changes on iOS (#59114) Summary: On iOS, `RCTViewComponentView updateProps:oldProps:` only invalidates the layer when `borderStyles`, `borderRadii` or `borderColors` change. A change to `borderCurve` alone is parsed into `borderCurves` but never reaches `layer.cornerCurve`, so the old curve stays on screen until some other border prop changes. This adds `borderCurves` to that comparison. ## Changelog: [IOS] [FIXED] - Apply `borderCurve` changes that are not accompanied by another border prop change Pull Request resolved: https://github.com/react/react-native/pull/59114 Test Plan: On the iOS simulator (0.88.0-rc.4 with React Native built from source), a plain `View` with `borderRadius: 80` and `backgroundColor: 'blue'`, layered over a static `borderCurve: 'circular'` box, toggles `borderCurve` between `circular` and `continuous` with `setState` every 1.5s. Before the change the shape never changes, after it the `continuous` frames show the `circular` box outlining the corners. Reviewed By: cipolleschi Differential Revision: D126055226 Pulled By: javache fbshipit-source-id: b7ba0762f2912a635a3152a130336dd4ea3c26ee --- .../Mounting/ComponentViews/View/RCTViewComponentView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm index 3cad449b375..bdd0bb5af23 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm @@ -461,7 +461,8 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer) // `border` if (oldViewProps.borderStyles != newViewProps.borderStyles || oldViewProps.borderRadii != newViewProps.borderRadii || - oldViewProps.borderColors != newViewProps.borderColors) { + oldViewProps.borderColors != newViewProps.borderColors || + oldViewProps.borderCurves != newViewProps.borderCurves) { needsInvalidateLayer = YES; }