Introduce new class ShadowNodeFamilyFragment

Summary: Changelog: [Internal]

Reviewed By: shergin

Differential Revision: D19115782

fbshipit-source-id: 9c3b069dbbf2c3d7321dfc9fbd0e54ae4e485a32
This commit is contained in:
Samuel Susla authored and Facebook Github Bot committed 2019-12-19 13:48:21 -08:00
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