Files
react-native/ReactCommon/fabric/components/scrollview/PullToRefreshViewProps.cpp
T
Valentin Shergin e8b2145263 Fabric: Standard PullToRefresh component
Summary: This is implementation of standard PullToRefresh component that uses standard iOS component and modern integration approach.

Reviewed By: mdvacca

Differential Revision: D15403308

fbshipit-source-id: 5c877f7c18af9f5ac40e15a4ba44118614ba80bc
2019-05-19 17:44:40 -07:00

29 lines
894 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 "PullToRefreshViewProps.h"
#include <react/core/propsConversions.h>
#include <react/graphics/conversions.h>
namespace facebook {
namespace react {
PullToRefreshViewProps::PullToRefreshViewProps(
PullToRefreshViewProps const &sourceProps,
RawProps const &rawProps)
: ViewProps(sourceProps, rawProps),
refreshing(
convertRawProp(rawProps, "refreshing", sourceProps.refreshing)),
tintColor(convertRawProp(rawProps, "tintColor", sourceProps.tintColor)),
title(convertRawProp(rawProps, "title", sourceProps.title)),
titleColor(
convertRawProp(rawProps, "titleColor", sourceProps.titleColor)) {}
} // namespace react
} // namespace facebook