mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
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
36 lines
705 B
C++
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
|