2018-05-23 10:03:41 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-05-23 10:03:41 -07:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
2018-07-15 16:46:33 -07:00
|
|
|
#include <fabric/components/activityindicator/ActivityIndicatorViewProps.h>
|
|
|
|
#include <fabric/components/activityindicator/conversions.h>
|
2018-05-23 10:03:41 -07:00
|
|
|
#include <fabric/core/propsConversions.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
2018-10-05 11:01:08 -07:00
|
|
|
ActivityIndicatorViewProps::ActivityIndicatorViewProps(
|
|
|
|
const ActivityIndicatorViewProps &sourceProps,
|
|
|
|
const RawProps &rawProps)
|
|
|
|
: ViewProps(sourceProps, rawProps),
|
|
|
|
animating(convertRawProp(rawProps, "animating", sourceProps.animating)),
|
|
|
|
color(convertRawProp(rawProps, "color", sourceProps.color)),
|
|
|
|
hidesWhenStopped(convertRawProp(
|
|
|
|
rawProps,
|
|
|
|
"hidesWhenStopped",
|
|
|
|
sourceProps.hidesWhenStopped)),
|
|
|
|
size(convertRawProp(rawProps, "size", sourceProps.size)) {}
|
2018-05-23 10:03:41 -07:00
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|