Skip to content

Commit a47b9aa

Browse files
riteshshukla04cipolleschi
authored andcommitted
Fixed borderBottomEndRadius on RTL (#51229)
Summary: Fixes #51193 [ANDROID][FIXED] Wrong borderBottomEndRadius on RTL Pull Request resolved: #51229 Test Plan: Tested with Arabic (RTL) and English(LTR) English <img src="https://github.com/user-attachments/assets/5bd1eca9-194c-4d83-b75f-689bc13d827b" width=200> Arabic <img src="https://github.com/user-attachments/assets/459320a0-6bb2-4585-97bb-bd4ded6ec399" width=200> Reviewed By: cortinico Differential Revision: D74709219 Pulled By: NickGerleman fbshipit-source-id: 885bb84d97d73324983d044fd2874a457b40f646
1 parent e5c0896 commit a47b9aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderRadiusStyle.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ internal data class BorderRadiusStyle(
136136
(startStart ?: topStart ?: topLeft ?: uniform)?.resolve(width, height)
137137
?: zeroRadii,
138138
bottomLeft =
139-
(endEnd ?: bottomStart ?: bottomRight ?: uniform)?.resolve(width, height)
139+
(endEnd ?: bottomEnd ?: bottomRight ?: uniform)?.resolve(width, height)
140140
?: zeroRadii,
141141
bottomRight =
142-
(startEnd ?: bottomEnd ?: bottomLeft ?: uniform)?.resolve(width, height)
142+
(startEnd ?: bottomStart ?: bottomLeft ?: uniform)?.resolve(width, height)
143143
?: zeroRadii,
144144
width = width,
145145
height = height,

packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/BorderRadiusStyleTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ class BorderRadiusStyleTest {
8888
arrayOf(
8989
BorderRadiusProp.BORDER_RADIUS,
9090
BorderRadiusProp.BORDER_BOTTOM_RIGHT_RADIUS,
91-
BorderRadiusProp.BORDER_BOTTOM_START_RADIUS,
91+
BorderRadiusProp.BORDER_BOTTOM_END_RADIUS,
9292
BorderRadiusProp.BORDER_END_END_RADIUS),
9393
ComputedBorderRadiusProp.COMPUTED_BORDER_BOTTOM_RIGHT_RADIUS to
9494
arrayOf(
9595
BorderRadiusProp.BORDER_RADIUS,
9696
BorderRadiusProp.BORDER_BOTTOM_LEFT_RADIUS,
97-
BorderRadiusProp.BORDER_BOTTOM_END_RADIUS,
97+
BorderRadiusProp.BORDER_BOTTOM_START_RADIUS,
9898
BorderRadiusProp.BORDER_START_END_RADIUS),
9999
)
100100

0 commit comments

Comments
 (0)