LayoutAnimationController [sometimes] leaks memory #49958
Labels
API: LayoutAnimation
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Description
Android's onAnimationEnd callback is lossy and ocasionally just does not fire. However the LayoutAnimationController maintains a sparse array of animations (with Strong View refs) that is only cleaned when the onAnimationEnd callback is invoked. This results in a leak of Android View objects over time.
Steps to reproduce
React Native Version
0.78.0
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
n/a
Screenshots and Videos
The text was updated successfully, but these errors were encountered: