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(layout): performances optimization #53

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

Conversation

uragirii
Copy link

Description

This PR implements the conditional rendering of the children according to animation. When the animation is running, the View nodes are mounted and they are unmounted after the animation finishes. I've also implemented 2 tests to test this behavior. This should provide a performance boost in the case of low-end devices. Unnecessary children are not rendered.

Related issues

  • #51 Android App is slow after using this library

@alexcastillo
Copy link

This PR is awesome. Would love to see it merged.

@corbt
Copy link

corbt commented Sep 21, 2022

Seems like a great change. Would also vote to merge this and get a new version published!

@chrisedington
Copy link

Voted.

@uragirii
Copy link
Author

@VincentCATILLON can we get this merged?

@jonathanroze
Copy link

I think you should create a new repository, Vincent seems to have abandoned the project unfortunately

chrisedington pushed a commit to shopstarco/react-native-confetti-cannon that referenced this pull request Sep 30, 2022
@VincentCATILLON
Copy link
Owner

Hi @uragirii @alexcastillo @corbt @chrisedington @jonathanroze ,

Sorry about the delay. I'll take a look and post a review to be able to publish it as soon as possible 🙏

Thanks in advance for your contribution

@VincentCATILLON VincentCATILLON changed the title Conditionally Rendering Children only if animation is running fix(layout): performances optimization Sep 30, 2022
felipecsl added a commit to Alza-app/react-native-confetti-cannon-fork that referenced this pull request Mar 15, 2023
felipecsl added a commit to Alza-app/react-native-confetti-cannon-fork that referenced this pull request Mar 15, 2023
felipecsl added a commit to Alza-app/react-native-confetti-cannon-fork that referenced this pull request Mar 16, 2023
* Apply changes from VincentCATILLON#53

* move from flow to tsc + fix types

* update deps

* do not push build directory

* reapply changes from VincentCATILLON#53

* revert package name change
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.

9 participants