mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
add nativeId to shadow node logs (#47594)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47594 changelog: [internal] helpful for debugging. Reviewed By: christophpurrer Differential Revision: D65895429 fbshipit-source-id: 51f361f00b070c2374232a375af1b17abb341a97
This commit is contained in:
parent
849c139a4c
commit
e5808f2af6
@ -365,7 +365,8 @@ std::string ShadowNode::getDebugName() const {
|
||||
std::string ShadowNode::getDebugValue() const {
|
||||
return "r" + folly::to<std::string>(revision_) + "/sr" +
|
||||
folly::to<std::string>(state_ ? state_->getRevision() : 0) +
|
||||
(getSealed() ? "/sealed" : "");
|
||||
(getSealed() ? "/sealed" : "") +
|
||||
(getProps()->nativeId.empty() ? "" : "/id=" + getProps()->nativeId);
|
||||
}
|
||||
|
||||
SharedDebugStringConvertibleList ShadowNode::getDebugChildren() const {
|
||||
|
Loading…
Reference in New Issue
Block a user