mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a011eaf7e5
Summary: Basic implementation of ARTSurfaceView (shadow nodes, props and component descriptor) changelog: [Internal] Reviewed By: shergin Differential Revision: D21621484 fbshipit-source-id: 5577989e966a8a97a043454bf9ae1e5602abc3b1
27 lines
672 B
C++
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
|