mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
14a174c237
Summary: Now, having `orderIndex` feature in the core, we can use it for implementing `zIndex` feature. All we need to do is just to assign this `zIndex` value to `orderIndex`. Then we will use this to remove some platform-specific code that implements `zIndex` on the mounting layer. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D20432155 fbshipit-source-id: b4d62b63006f45899de38e1f40b1dfbe69550ada
41 lines
982 B
C++
41 lines
982 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 <react/components/view/ConcreteViewShadowNode.h>
|
|
#include <react/components/view/ViewProps.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
extern const char ViewComponentName[];
|
|
|
|
/*
|
|
* `ShadowNode` for <View> component.
|
|
*/
|
|
class ViewShadowNode final : public ConcreteViewShadowNode<
|
|
ViewComponentName,
|
|
ViewProps,
|
|
ViewEventEmitter> {
|
|
public:
|
|
ViewShadowNode(
|
|
ShadowNodeFragment const &fragment,
|
|
ShadowNodeFamily::Shared const &family,
|
|
ShadowNodeTraits traits);
|
|
|
|
ViewShadowNode(
|
|
ShadowNode const &sourceShadowNode,
|
|
ShadowNodeFragment const &fragment);
|
|
|
|
private:
|
|
void initialize() noexcept;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|