Skip to content

added a straight rain option#9

Open
ajohnson1031 wants to merge 1 commit intopeacechen:masterfrom
ajohnson1031:aaron-johnson
Open

added a straight rain option#9
ajohnson1031 wants to merge 1 commit intopeacechen:masterfrom
ajohnson1031:aaron-johnson

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

Comments