mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
6eec39313d
commit
3c2395212c
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user