Remove activityindicator files

Summary: These were moved to the codgen

Reviewed By: TheSavior

Differential Revision: D14307470

fbshipit-source-id: 49030c245f11bd595bb97e1b2f34a7c454be5c56
This commit is contained in:
Rick Hanlon
2019-03-05 11:48:39 -08:00
committed by Facebook Github Bot
parent f43703bdb5
commit 9098bc7749
9 changed files with 2 additions and 157 deletions

View File

@@ -1,20 +0,0 @@
/**
* 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.
*/
#pragma once
#include <react/components/activityindicator/ActivityIndicatorViewShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {
using ActivityIndicatorViewComponentDescriptor =
ConcreteComponentDescriptor<ActivityIndicatorViewShadowNode>;
} // namespace react
} // namespace facebook

View File

@@ -1,28 +0,0 @@
/**
* 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/activityindicator/ActivityIndicatorViewProps.h>
#include <react/components/activityindicator/conversions.h>
#include <react/core/propsConversions.h>
namespace facebook {
namespace react {
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)) {}
} // namespace react
} // namespace facebook

View File

@@ -1,33 +0,0 @@
/**
* 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/activityindicator/primitives.h>
#include <react/components/view/ViewProps.h>
#include <react/graphics/Color.h>
namespace facebook {
namespace react {
// TODO (T28334063): Consider for codegen.
class ActivityIndicatorViewProps final : public ViewProps {
public:
ActivityIndicatorViewProps() = default;
ActivityIndicatorViewProps(
const ActivityIndicatorViewProps &sourceProps,
const RawProps &rawProps);
#pragma mark - Props
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};
};
} // namespace react
} // namespace facebook

View File

@@ -1,16 +0,0 @@
/**
* 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 "ActivityIndicatorViewShadowNode.h"
namespace facebook {
namespace react {
const char ActivityIndicatorViewComponentName[] = "ActivityIndicatorView";
} // namespace react
} // namespace facebook

View File

@@ -1,26 +0,0 @@
/**
* 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.
*/
#pragma once
#include <react/components/activityindicator/ActivityIndicatorViewProps.h>
#include <react/components/view/ConcreteViewShadowNode.h>
namespace facebook {
namespace react {
extern const char ActivityIndicatorViewComponentName[];
/*
* `ShadowNode` for <ActivityIndicatorView> component.
*/
using ActivityIndicatorViewShadowNode = ConcreteViewShadowNode<
ActivityIndicatorViewComponentName,
ActivityIndicatorViewProps>;
} // namespace react
} // namespace facebook

View File

@@ -1,19 +0,0 @@
/**
* 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.
*/
#pragma once
namespace facebook {
namespace react {
enum class ActivityIndicatorViewSize {
Large,
Small,
};
} // namespace react
} // namespace facebook

View File

@@ -1,14 +0,0 @@
/**
* 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 <memory>
#include <gtest/gtest.h>
TEST(ActivityIndicatorViewTest, testSomething) {
// TODO
}

View File

@@ -89,5 +89,6 @@ fb_xplat_cxx_test(
react_native_xplat_target("fabric/components/scrollview:scrollview"),
react_native_xplat_target("fabric/components/text:text"),
react_native_xplat_target("fabric/components/view:view"),
"fbsource//xplat/js:generated_components-rncore",
],
)

View File

@@ -13,8 +13,8 @@
using namespace facebook::react;
#include <react/components/activityindicator/ActivityIndicatorViewComponentDescriptor.h>
#include <react/components/image/ImageComponentDescriptor.h>
#include <react/components/rncore/ComponentDescriptors.h>
#include <react/components/scrollview/ScrollViewComponentDescriptor.h>
#include <react/components/text/ParagraphComponentDescriptor.h>
#include <react/components/text/RawTextComponentDescriptor.h>