Skip to content

Commit 7c8569a

Browse files
fix(android): remove double DIP conversion for borderWidth
BackgroundStyleApplicator.setBorderWidth converts DIPs to pixels internally, so the ViewManager should pass the raw DIP value.
1 parent 9d3b8c5 commit 7c8569a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

android/src/main/java/com/ease/EaseViewManager.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,13 @@ class EaseViewManager : ReactViewManager() {
157157

158158
@ReactProp(name = "animateBorderWidth", defaultFloat = 0f)
159159
fun setAnimateBorderWidth(view: EaseView, value: Float) {
160-
view.pendingBorderWidth = PixelUtil.toPixelFromDIP(value)
160+
// BackgroundStyleApplicator.setBorderWidth expects DIPs (converts internally)
161+
view.pendingBorderWidth = value
161162
}
162163

163164
@ReactProp(name = "initialAnimateBorderWidth", defaultFloat = 0f)
164165
fun setInitialAnimateBorderWidth(view: EaseView, value: Float) {
165-
view.initialAnimateBorderWidth = PixelUtil.toPixelFromDIP(value)
166+
view.initialAnimateBorderWidth = value
166167
}
167168

168169
// --- Border color ---

0 commit comments

Comments
 (0)