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

added a straight rain option #9

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

Conversation

ajohnson1031
Copy link

Let me know if this is okay with you.

@peacechen
Copy link
Owner

@ajohnson1031 Thanks for your contribution and interest in this project.

I'd like to support the straight-down animations that you requested. Adding an additional, near-identical version of the component makes it difficult to maintain. Fixes in one module would need to be carried over to the other.

Would you investigate the spring and swingArc methods when the velocity is 0?

const spring = (dt, position, velocity, anchor, tension = 50, mass = 1 ) => {

It could be a matter of short-circuiting the return in the spring if the velocity is 0. The swingArc method may need the velocity parameter to do the same.

@ajohnson1031
Copy link
Author

ajohnson1031 commented May 28, 2021 via email

@peacechen
Copy link
Owner

If you have an app already set up, you could edit the source files under node_modules/react-native-make-it-rain. You'll then need to copy those over to your fork in order to submit them in a PR.

@ajohnson1031
Copy link
Author

ajohnson1031 commented May 28, 2021 via email

@peacechen
Copy link
Owner

The recommendation by the reanimated team is to migrate to reanimated v2. However, another thread says that v2 has poor performance.

Someone made an unmounting patch but I'm not sure whether it made it into the library.
software-mansion/react-native-reanimated#782

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.

2 participants