mirror of
https://github.com/status-im/react-native.git
synced 2025-01-24 00:09:08 +00:00
35 lines
846 B
C++
35 lines
846 B
C++
|
/**
|
||
|
* Copyright (c) 2015-present, Facebook, Inc.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/
|
||
|
|
||
|
#include "ShadowNodeFragment.h"
|
||
|
|
||
|
namespace facebook {
|
||
|
namespace react {
|
||
|
|
||
|
SharedProps &ShadowNodeFragment::nullSharedProps() {
|
||
|
static auto &instance = *new SharedProps();
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
SharedEventEmitter &ShadowNodeFragment::nullSharedEventEmitter() {
|
||
|
static auto &instance = *new SharedEventEmitter();
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
SharedShadowNodeSharedList &ShadowNodeFragment::nullSharedChildren() {
|
||
|
static auto &instance = *new SharedShadowNodeSharedList();
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
SharedLocalData &ShadowNodeFragment::nullLocalData() {
|
||
|
static auto &instance = *new SharedLocalData();
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
} // namespace react
|
||
|
} // namespace facebook
|