Skip to content

Commit 35e26f7

Browse files
staszekscpnecolas
authored andcommitted
Fix memory leak with Animated API
1 parent 607e52d commit 35e26f7

File tree

1 file changed

+1
-0
lines changed
  • packages/react-native-web/src/vendor/react-native/Animated/nodes

1 file changed

+1
-0
lines changed

packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedProps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class AnimatedProps extends AnimatedNode {
7878
if (this.__isNative && this._animatedView) {
7979
this.__disconnectAnimatedView();
8080
}
81+
this._animatedView = null;
8182
for (const key in this._props) {
8283
const value = this._props[key];
8384
if (value instanceof AnimatedNode) {

0 commit comments

Comments
 (0)