mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
8d613c6f32
commit
ab5e87fd95
@@ -33,4 +33,18 @@ import com.facebook.react.bridge.ReadableMap;
|
||||
mNativeAnimatedNodesManager.startAnimatingNode(
|
||||
mAnimationId, mValueNode, mAnimationConfig, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String prettyPrint() {
|
||||
return "TrackingAnimatedNode["
|
||||
+ mTag
|
||||
+ "]: animationID: "
|
||||
+ mAnimationId
|
||||
+ " toValueNode: "
|
||||
+ mToValueNode
|
||||
+ " valueNode: "
|
||||
+ mValueNode
|
||||
+ " animationConfig: "
|
||||
+ mAnimationConfig;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user