Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Libraries/Animated/src/AnimatedImplementation.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -1328,6 +1328,7 @@ class AnimatedModulo extends AnimatedWithChildren {

__detach(): void {
this._a.__removeChild(this);
super.__detach();
}

__getNativeConfig(): any {
Expand DownExpand Up@@ -1378,6 +1379,7 @@ class AnimatedDiffClamp extends AnimatedWithChildren {

__detach(): void {
this._a.__removeChild(this);
super.__detach();
}

__getNativeConfig(): any {
Expand DownExpand Up@@ -1461,6 +1463,7 @@ class AnimatedTransform extends AnimatedWithChildren {
}
}
});
super.__detach();
}

__getNativeConfig(): any {
Expand DownExpand Up@@ -1568,6 +1571,7 @@ class AnimatedStyle extends AnimatedWithChildren {
value.__removeChild(this);
}
}
super.__detach();
}

__makeNative() {
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Animated/src/__tests__/AnimatedNative-test.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -281,7 +281,7 @@ describe('Native Animated', () => {
);

expect(nativeAnimatedModule.disconnectAnimatedNodes).toHaveBeenCalledTimes(2);
expect(nativeAnimatedModule.dropAnimatedNode).toHaveBeenCalledTimes(2);
expect(nativeAnimatedModule.dropAnimatedNode).toHaveBeenCalledTimes(3);
});

it('sends a valid description for value, style and props nodes', () => {
Expand Down