Fix UNSET problem for text alignment change

Summary: Use UNSET(-1) as default will lead wrong calculation for text alignment. Change it to Gravity.NO_GRAVITY to fix this problem.

Reviewed By: fkgozali

Differential Revision: D3624417

fbshipit-source-id: c116560e64600be60b2fe719f575701b00f20a97
This commit is contained in:
Mengjue Wang authored and Facebook Github Bot 0 committed 2016-07-27 10:28:37 -07:00
1 parent ffb690f072
commit 5b4fb89e4c
1 file changed
+1 -1
@@ -310,7 +310,7 @@ public class ReactTextShadowNode extends LayoutShadowNode {
protected int mNumberOfLines = UNSET;
protected int mFontSize = UNSET;
protected int mTextAlign = UNSET;
protected int mTextAlign = Gravity.NO_GRAVITY;
private float mTextShadowOffsetDx = 0;
private float mTextShadowOffsetDy = 0;