Fix Non-uniform border colors on TextInput (#50880)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
Nick Gerleman
2025-04-23 15:26:04 -07:00
committed by Facebook GitHub Bot
parent cf9514e549
commit 42251ec0ed
@@ -167,7 +167,7 @@ internal abstract class ReactTextAnchorViewManager<C : ReactBaseTextShadowNode?>
"borderBottomColor"],
customType = "Color")
public fun setBorderColor(view: ReactTextView, index: Int, color: Int?) {
BackgroundStyleApplicator.setBorderColor(view, LogicalEdge.ALL, color)
BackgroundStyleApplicator.setBorderColor(view, LogicalEdge.values()[index], color)
}
@ReactProp(name = ViewProps.INCLUDE_FONT_PADDING, defaultBoolean = true)