2018-03-18 19:04:25 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-03-18 19:04:25 -07:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-07-15 16:46:31 -07:00
|
|
|
#include <fabric/components/view/ConcreteViewShadowNode.h>
|
2018-10-05 11:01:08 -07:00
|
|
|
#include <fabric/components/view/ViewProps.h>
|
2018-03-18 19:04:25 -07:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
2018-08-04 09:30:13 -07:00
|
|
|
extern const char ViewComponentName[];
|
2018-03-18 19:04:25 -07:00
|
|
|
|
2018-09-30 22:01:51 -07:00
|
|
|
/*
|
|
|
|
* `ShadowNode` for <View> component.
|
|
|
|
*/
|
2018-10-05 11:01:08 -07:00
|
|
|
class ViewShadowNode final : public ConcreteViewShadowNode<
|
|
|
|
ViewComponentName,
|
|
|
|
ViewProps,
|
|
|
|
ViewEventEmitter> {
|
|
|
|
public:
|
2018-09-30 22:01:51 -07:00
|
|
|
using ConcreteViewShadowNode::ConcreteViewShadowNode;
|
|
|
|
|
|
|
|
bool isLayoutOnly() const;
|
|
|
|
};
|
2018-03-18 19:04:25 -07:00
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|