Add extra debug information to ReactShadowNodes objects

Reviewed By: achen1

Differential Revision: D7195373

fbshipit-source-id: 6611726c3e1f92f387e00e733b1b8909a3e9edc2
This commit is contained in:
David Vacca 2018-03-09 09:39:40 -08:00 committed by Facebook Github Bot
parent a7558d58a0
commit e31781be61
1 changed files with 3 additions and 2 deletions

View File

@ -994,9 +994,10 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
result.append("__");
}
result.append(getClass().getSimpleName()).append(" ");
result.append(getClass().getSimpleName()).append(" ").append(getReactTag()).append(" ");
if (mYogaNode != null) {
result.append(getLayoutWidth()).append(",").append(getLayoutHeight());
result.append(getScreenX()).append(";").append(getScreenY()).append(";")
.append(getLayoutWidth()).append(";").append(getLayoutHeight());
} else {
result.append("(virtual node)");
}