diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java index fbbae4c1b180c1..3107223d3d27d0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java @@ -115,13 +115,13 @@ public void setScaleY(T view, float scaleY) { @Deprecated @ReactProp(name = PROP_TRANSLATE_X, defaultFloat = 1f) public void setTranslateX(T view, float translateX) { - view.setTranslationX(translateX); + view.setTranslationX(PixelUtil.toPixelFromDIP(translateX)); } @Deprecated @ReactProp(name = PROP_TRANSLATE_Y, defaultFloat = 1f) public void setTranslateY(T view, float translateY) { - view.setTranslationY(translateY); + view.setTranslationY(PixelUtil.toPixelFromDIP(translateY)); } @ReactProp(name = PROP_ACCESSIBILITY_LIVE_REGION)