From 3c2395212c620cb9a3aee4015ea8cdc5c6e443e2 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 2 Jul 2019 14:40:01 -0700 Subject: [PATCH] Update parsing of textAlign prop for Text Summary: This fixes the parsing of textAlign prop in BaseTextProps class. The name is textAlign and not alignment. Reviewed By: JoshuaGross Differential Revision: D16057477 fbshipit-source-id: a00a472af4c7df0a6cd3d6efb17b30cd9134907b --- ReactCommon/fabric/components/text/basetext/BaseTextProps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/fabric/components/text/basetext/BaseTextProps.cpp b/ReactCommon/fabric/components/text/basetext/BaseTextProps.cpp index d25d9f71179..4e6538afc41 100644 --- a/ReactCommon/fabric/components/text/basetext/BaseTextProps.cpp +++ b/ReactCommon/fabric/components/text/basetext/BaseTextProps.cpp @@ -50,7 +50,7 @@ static TextAttributes convertRawProp( textAttributes.lineHeight = convertRawProp(rawProps, "lineHeight", defaultTextAttributes.lineHeight); textAttributes.alignment = - convertRawProp(rawProps, "alignment", defaultTextAttributes.alignment); + convertRawProp(rawProps, "textAlign", defaultTextAttributes.alignment); textAttributes.baseWritingDirection = convertRawProp( rawProps, "baseWritingDirection",