Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: restore bitmap recycling on children changes #1864

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

WoLewicki
Copy link
Member

@WoLewicki WoLewicki commented Sep 9, 2022

Summary

PR fixing the regression introduced in #1844. In that PR we set mRemovedFromReactViewHierarchy after one of SvgView's children has been removed, resulting in not being able to update it after one of the components in its hierarchy has been removed. In this PR the behavior has been changed, now we subscribe to startViewTransition which should be called only by react-native-screens when the screen starts its removal animation. It should still work for old issues as well as the new ones.

Fix originally proposed by @msvargas in software-mansion/react-native-screens#773 (comment).

Test Plan

software-mansion/react-native-screens#773 (comment)
#1859
#1861

@WoLewicki WoLewicki merged commit f16a08f into main Sep 14, 2022
@WoLewicki WoLewicki deleted the @wolewicki/fix-android-animations branch September 14, 2022 09:03
@alimek
Copy link

alimek commented Sep 14, 2022

@WoLewicki any idea when this become available via new NPM version?

@Samueldhardy
Copy link

@WoLewicki Second on the request to release into a new version asap please.

@WoLewicki
Copy link
Member Author

@alimek @Samueldhardy https://github.com/react-native-svg/react-native-svg/releases/tag/v13.2.0 🎉

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

Successfully merging this pull request may close these issues.

4 participants