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:
parent
ffb690f072
commit
5b4fb89e4c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue