Pretty-print Native AnimatedNode values

Summary:
For debugging, add prettyPrint method to AnimatedNode classes.

Changelog: [Internal]

Reviewed By: shergin

Differential Revision: D22752292

fbshipit-source-id: ce1f08fc4fd97f38629dd82151c6ea762026c7c9
This commit is contained in:
Joshua Gross
2020-07-25 13:45:11 -07:00
committed by Facebook GitHub Bot
parent 8d613c6f32
commit ab5e87fd95
13 changed files with 130 additions and 0 deletions
@@ -113,4 +113,15 @@ import java.util.Map;
mUIManager.synchronouslyUpdateViewOnUIThread(mConnectedViewTag, mPropMap);
}
public String prettyPrint() {
return "PropsAnimatedNode["
+ mTag
+ "] connectedViewTag: "
+ mConnectedViewTag
+ " mPropNodeMapping: "
+ (mPropNodeMapping != null ? mPropNodeMapping.toString() : "null")
+ " mPropMap: "
+ (mPropMap != null ? mPropMap.toString() : "null");
}
}