Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Break circular reference in LayoutAnimation #6671

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukmccall
Copy link
Member

Summary

Breaks circular reference in the LayoutAnimations.

LayoutAnimations is a HybridClass with a C++ counterpart holding a global reference to the Java object. This structure creates a circular reference between C++ and Java, which the garbage collector cannot clean up. To resolve this issue, I manually removed the reference between C++ and Java by resetting the global ref during the destructor of the NativeProxy.

Test plan

  • tested in Expo Go ✅

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants