From b8d3c9efc7263daf323781920b7a4cccb2d919bb Mon Sep 17 00:00:00 2001 From: staszekscp Date: Wed, 20 Aug 2025 09:45:33 +0200 Subject: [PATCH] Fix memory leak with Animated API --- .../src/vendor/react-native/Animated/nodes/AnimatedProps.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedProps.js b/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedProps.js index 65922d06ad..7785530fd3 100644 --- a/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedProps.js +++ b/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedProps.js @@ -78,6 +78,7 @@ class AnimatedProps extends AnimatedNode { if (this.__isNative && this._animatedView) { this.__disconnectAnimatedView(); } + this._animatedView = null; for (const key in this._props) { const value = this._props[key]; if (value instanceof AnimatedNode) {