mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Introduce new class ShadowNodeFamilyFragment
Summary: Changelog: [Internal] Reviewed By: shergin Differential Revision: D19115782 fbshipit-source-id: 9c3b069dbbf2c3d7321dfc9fbd0e54ae4e485a32
This commit is contained in:
1 parent
7428271995
commit
bd359ce257
1 file changed
+29
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/core/EventEmitter.h>
|
||||
#include <react/core/ReactPrimitives.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
/*
|
||||
* Note: All of the fields are `const &` references (essentially just raw
|
||||
* pointers) which means that the Fragment does not copy/store them nor
|
||||
* retain ownership of them.
|
||||
*/
|
||||
class ShadowNodeFamilyFragment final {
|
||||
public:
|
||||
Tag const tag;
|
||||
SurfaceId const surfaceId;
|
||||
EventEmitter::Shared const &eventEmitter;
|
||||
};
|
||||
|
||||
} // namespace react
|
||||
} // namespace facebook
|
||||
Reference in new issue
Block a user