Skip to content

Feature: added iterationPause property#169

Merged
oblador merged 5 commits intooblador:masterfrom
languagedrops:master
May 31, 2018
Merged

Feature: added iterationPause property#169
oblador merged 5 commits intooblador:masterfrom
languagedrops:master

Conversation

@almostintuitive
Copy link
Copy Markdown
Contributor

@almostintuitive almostintuitive commented Dec 21, 2017

A new, optional property to insert a pause between two iterations.

We're happy to update the README to include this, if everything is fine with this PR.

Closes #168

delay,
onAnimationBegin,
onAnimationEnd,
iterationPause,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer to name this iterationDelay instead to keep it consistent.

}

animate(animation, duration) {
animate(animation, duration, iterationCount) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be iterationDelay no?

}

Animated.timing(animationValue, {
const delay = iterationPause ? { delay: iterationPause } : {}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this style, can't you just do it inline with a default to 0 like the others?

Copy link
Copy Markdown
Owner

@oblador oblador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Some stylistic changes and a nit about naming otherwise good job!

@oblador
Copy link
Copy Markdown
Owner

oblador commented Apr 4, 2018

@itchingpixels Thanks again for your PR. Are you planning on addressing the comments?

@ohtangza
Copy link
Copy Markdown

Can't wait using it!

@almostintuitive
Copy link
Copy Markdown
Contributor Author

I'll get this done in 24 hours :)

@almostintuitive
Copy link
Copy Markdown
Contributor Author

done!:)

@oblador oblador merged commit 34e0ef0 into oblador:master May 31, 2018
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.

3 participants