Files
react-native/ReactCommon/fabric/components/view/ViewShadowNode.h
Valentin Shergin c70abb393f Fabric: Enabling view hierarchy flattening (for <View> component only for now)
Summary: This change implements `onLayoutOnly` for regular bare <View> component (*not* for its descendants!) After this view flattening is actually starting working for all platforms.

Reviewed By: mdvacca

Differential Revision: D9511001

fbshipit-source-id: 3562dd1b7570a064150f100cc2e1bc4220b81290
2018-09-30 22:23:02 -07:00

36 lines
705 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.
*/
#pragma once
#include <fabric/components/view/ViewProps.h>
#include <fabric/components/view/ConcreteViewShadowNode.h>
namespace facebook {
namespace react {
extern const char ViewComponentName[];
/*
* `ShadowNode` for <View> component.
*/
class ViewShadowNode final:
public ConcreteViewShadowNode<
ViewComponentName,
ViewProps,
ViewEventEmitter
> {
public:
using ConcreteViewShadowNode::ConcreteViewShadowNode;
bool isLayoutOnly() const;
};
} // namespace react
} // namespace facebook