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-11-10 14:19:08 -08:00
|
|
|
#include <react/components/activityindicator/primitives.h>
|
|
|
|
#include <react/components/view/ViewProps.h>
|
|
|
|
#include <react/graphics/Color.h>
|
2018-05-23 10:03:41 -07:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
// TODO (T28334063): Consider for codegen.
|
2018-10-05 11:01:08 -07:00
|
|
|
class ActivityIndicatorViewProps final : public ViewProps {
|
|
|
|
public:
|
2018-05-23 10:03:41 -07:00
|
|
|
ActivityIndicatorViewProps() = default;
|
2018-10-05 11:01:08 -07:00
|
|
|
ActivityIndicatorViewProps(
|
|
|
|
const ActivityIndicatorViewProps &sourceProps,
|
|
|
|
const RawProps &rawProps);
|
2018-05-23 10:03:41 -07:00
|
|
|
|
|
|
|
#pragma mark - Props
|
|
|
|
|
2018-10-05 11:01:08 -07:00
|
|
|
const bool animating{true};
|
|
|
|
const SharedColor color{colorFromComponents(
|
|
|
|
{153 / 255.0, 153 / 255.0, 153 / 255.0, 1.0})}; // #999999
|
|
|
|
const bool hidesWhenStopped{true};
|
|
|
|
const ActivityIndicatorViewSize size{ActivityIndicatorViewSize::Small};
|
2018-05-23 10:03:41 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|