From 573132d43b7fbc0739ac229cbef485a400fde425 Mon Sep 17 00:00:00 2001 From: Nikhil Pakhloo Date: Thu, 18 Jun 2026 16:53:35 +0530 Subject: [PATCH] fix: correct Android logical border radius mapping --- .../react/uimanager/style/BorderRadiusStyle.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderRadiusStyle.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderRadiusStyle.kt index e478867b0d71..aed3c6007f97 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderRadiusStyle.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderRadiusStyle.kt @@ -161,11 +161,11 @@ internal data class BorderRadiusStyle( CornerRadii(it, width, height) } ?: zeroRadii, topRight = - (endStart ?: topEnd ?: topRight ?: uniform)?.let { + (startEnd ?: topEnd ?: topRight ?: uniform)?.let { CornerRadii(it, width, height) } ?: zeroRadii, bottomLeft = - (startEnd ?: bottomStart ?: bottomLeft ?: uniform)?.let { + (endStart ?: bottomStart ?: bottomLeft ?: uniform)?.let { CornerRadii(it, width, height) } ?: zeroRadii, bottomRight = @@ -179,7 +179,7 @@ internal data class BorderRadiusStyle( if (I18nUtil.instance.doLeftAndRightSwapInRTL(context)) { ensureNoOverlap( topLeft = - (endStart ?: topEnd ?: topRight ?: uniform)?.let { + (startEnd ?: topEnd ?: topRight ?: uniform)?.let { CornerRadii(it, width, height) } ?: zeroRadii, topRight = @@ -191,7 +191,7 @@ internal data class BorderRadiusStyle( CornerRadii(it, width, height) } ?: zeroRadii, bottomRight = - (startEnd ?: bottomStart ?: bottomLeft ?: uniform)?.let { + (endStart ?: bottomStart ?: bottomLeft ?: uniform)?.let { CornerRadii(it, width, height) } ?: zeroRadii, width = width, @@ -200,7 +200,7 @@ internal data class BorderRadiusStyle( } else { ensureNoOverlap( topLeft = - (endStart ?: topEnd ?: topLeft ?: uniform)?.let { + (startEnd ?: topEnd ?: topLeft ?: uniform)?.let { CornerRadii(it, width, height) } ?: zeroRadii, topRight = @@ -212,7 +212,7 @@ internal data class BorderRadiusStyle( CornerRadii(it, width, height) } ?: zeroRadii, bottomRight = - (startEnd ?: bottomEnd ?: bottomRight ?: uniform)?.let { + (endStart ?: bottomEnd ?: bottomRight ?: uniform)?.let { CornerRadii(it, width, height) } ?: zeroRadii, width = width,