Fabric: Fixed error in parsing `position` style

Summary: This style/prop is called `position` (not `positionType`) in RN/JS API.

Reviewed By: mdvacca

Differential Revision: D8473509

fbshipit-source-id: f381189e05e6b618f3c74f1bc4610e737981b388
This commit is contained in:
Valentin Shergin 2018-06-17 21:35:53 -07:00 committed by Facebook Github Bot
parent e23a91e67b
commit 3b20a16703
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static YGStyle convertRawProp(const RawProps &rawProps, const YGStyle &defaultVa
yogaStyle.alignContent = convertRawProp(rawProps, "alignContent", defaultValue.alignContent);
yogaStyle.alignItems = convertRawProp(rawProps, "alignItems", defaultValue.alignItems);
yogaStyle.alignSelf = convertRawProp(rawProps, "alignSelf", defaultValue.alignSelf);
yogaStyle.positionType = convertRawProp(rawProps, "positionType", defaultValue.positionType);
yogaStyle.positionType = convertRawProp(rawProps, "position", defaultValue.positionType);
yogaStyle.flexWrap = convertRawProp(rawProps, "flexWrap", defaultValue.flexWrap);
yogaStyle.overflow = convertRawProp(rawProps, "overflow", defaultValue.overflow);
yogaStyle.display = convertRawProp(rawProps, "display", defaultValue.display);