mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
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:
parent
346ac75ed6
commit
802a371c92
@ -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)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user