mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e8b2145263
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
29 lines
894 B
C++
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
|