mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert "Animated: Restore AnimatedNode.prototype.toJSON (#46498)"
This reverts commit 83eb95e72a.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user