Skip to content

Commit

Permalink
Revert "Animated: Restore AnimatedNode.prototype.toJSON (#46498)"
Browse files Browse the repository at this point in the history
This reverts commit 83eb95e.
  • Loading branch information
cipolleschi committed Sep 16, 2024
1 parent 4126ce8 commit b8fa7c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
"
`;
Expand Down

0 comments on commit b8fa7c8

Please sign in to comment.