Fabric: Fixed missed default value in parsing constructor of ViewProps

Summary:
@public
It fixes a problem when some Views got disaper after they have non-zero opacity.

Reviewed By: mdvacca

Differential Revision: D8601600

fbshipit-source-id: 3da3ee591d4a685a8d7a56b15519d4d5cae4a031
This commit is contained in:
Valentin Shergin 2018-06-23 19:10:08 -07:00 committed by Facebook Github Bot
parent 346ac75ed6
commit 802a371c92
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ ViewProps::ViewProps(const YGStyle &yogaStyle):
ViewProps::ViewProps(const ViewProps &sourceProps, const RawProps &rawProps):
Props(sourceProps, rawProps),
YogaStylableProps(sourceProps, rawProps),
opacity(convertRawProp(rawProps, "opacity", sourceProps.opacity)),
opacity(convertRawProp(rawProps, "opacity", sourceProps.opacity, (Float)1.0)),
foregroundColor(convertRawProp(rawProps, "foregroundColor", sourceProps.foregroundColor)),
backgroundColor(convertRawProp(rawProps, "backgroundColor", sourceProps.backgroundColor)),
borderWidth(convertRawProp(rawProps, "borderWidth", sourceProps.borderWidth)),