Revert "Animated: Restore AnimatedNode.prototype.toJSON (#46498)"

This reverts commit 83eb95e72a.
This commit is contained in:
Riccardo Cipolleschi
2024-09-16 16:00:00 +02:00
parent 4126ce844d
commit b8fa7c80ff
2 changed files with 0 additions and 9 deletions
@@ -203,12 +203,4 @@ export default class AnimatedNode {
__setPlatformConfig(platformConfig: ?PlatformConfig) {
this._platformConfig = platformConfig;
}
/**
* NOTE: This is intended to prevent `JSON.stringify` from throwing "cyclic
* structure" errors in React DevTools. Avoid depending on this!
*/
toJSON(): mixed {
return this.__getValue();
}
}
@@ -930,7 +930,6 @@ exports[`public API should not change unintentionally Libraries/Animated/nodes/A
toJSON(): any;
__getPlatformConfig(): ?PlatformConfig;
__setPlatformConfig(platformConfig: ?PlatformConfig): void;
toJSON(): mixed;
}
"
`;