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 authored and Facebook GitHub Bot committed 2020-07-25 13:45:11 -07:00
1 parent 8d613c6f32
commit ab5e87fd95
13 files changed
+130

No files matched your search

@@ -60,4 +60,8 @@ import com.facebook.react.bridge.ReadableMap;
public void setValueListener(@Nullable AnimatedNodeValueListener listener) {
mValueListener = listener;
}
public String prettyPrint() {
return "ValueAnimatedNode[" + mTag + "]: value: " + mValue + " offset: " + mOffset;
}
}