Skip to content

Commit

Permalink
Fix default values for translateX/Y props.
Browse files Browse the repository at this point in the history
Reviewed By: andreicoman11

Differential Revision: D2631186

fb-gh-sync-id: 8f898b11be31b253780474d1cf328d7d109decbb
  • Loading branch information
kmagiera authored and facebook-github-bot-7 committed Nov 9, 2015
1 parent 86c1375 commit c6532a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ public void setScaleY(T view, float scaleY) {
}

@Deprecated
@ReactProp(name = PROP_TRANSLATE_X, defaultFloat = 1f)
@ReactProp(name = PROP_TRANSLATE_X, defaultFloat = 0f)
public void setTranslateX(T view, float translateX) {
view.setTranslationX(PixelUtil.toPixelFromDIP(translateX));
}

@Deprecated
@ReactProp(name = PROP_TRANSLATE_Y, defaultFloat = 1f)
@ReactProp(name = PROP_TRANSLATE_Y, defaultFloat = 0f)
public void setTranslateY(T view, float translateY) {
view.setTranslationY(PixelUtil.toPixelFromDIP(translateY));
}
Expand Down

0 comments on commit c6532a9

Please sign in to comment.