Skip to content

Commit 42251ec

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Fix Non-uniform border colors on TextInput (#50880)
Summary: Pull Request resolved: #50880 Kotlin conversion exposes unused variable warning. Looks like I broke this a year ago. Changelog: [Android][Fixed] - Fix Non-uniform border colors on TextInput Reviewed By: mdvacca Differential Revision: D73453825 fbshipit-source-id: 8e3fcac8ea55feb518a8d11a6fbdba7ea548ea2b
1 parent cf9514e commit 42251ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ internal abstract class ReactTextAnchorViewManager<C : ReactBaseTextShadowNode?>
167167
"borderBottomColor"],
168168
customType = "Color")
169169
public fun setBorderColor(view: ReactTextView, index: Int, color: Int?) {
170-
BackgroundStyleApplicator.setBorderColor(view, LogicalEdge.ALL, color)
170+
BackgroundStyleApplicator.setBorderColor(view, LogicalEdge.values()[index], color)
171171
}
172172

173173
@ReactProp(name = ViewProps.INCLUDE_FONT_PADDING, defaultBoolean = true)

0 commit comments

Comments
 (0)