Files
react-native/ReactCommon/fabric/components/art/surfaceview/ARTSurfaceViewProps.cpp
T
David Vacca a011eaf7e5 Basic implementation of ARTSurfaceView
Summary:
Basic implementation of ARTSurfaceView (shadow nodes, props and component descriptor)
changelog: [Internal]

Reviewed By: shergin

Differential Revision: D21621484

fbshipit-source-id: 5577989e966a8a97a043454bf9ae1e5602abc3b1
2020-05-18 16:36:37 -07:00

27 lines
672 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <react/components/art/ARTSurfaceViewProps.h>
#include <react/core/propsConversions.h>
namespace facebook {
namespace react {
ARTSurfaceViewProps::ARTSurfaceViewProps(
ARTSurfaceViewProps const &sourceProps,
RawProps const &rawProps)
: ViewProps(sourceProps, rawProps),
backgroundColor(convertRawProp(
rawProps,
"backgroundColor",
sourceProps.backgroundColor,
{})) {}
} // namespace react
} // namespace facebook