mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 17:22:45 +08:00
Fix View translations in Android
Summary: Fixes regression in bf59864
Closes #3773
Closes https://github.com/facebook/react-native/pull/3954
Reviewed By: svcscm
Differential Revision: D2631180
Pulled By: kmagiera
fb-gh-sync-id: 09a1a2e48fd6fff37d1491c120a28221cdc1b163
This commit is contained in:
committed by
facebook-github-bot-9
parent
714d452a72
commit
b12117a038
@@ -115,13 +115,13 @@ public abstract class BaseViewManager<T extends View, C extends LayoutShadowNode
|
||||
@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)
|
||||
|
||||
Reference in New Issue
Block a user