2018-08-04 09:30:32 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-08-04 09:30:32 -07:00
|
|
|
*
|
|
|
|
* 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
|