Skip to content

Conversation

@aleclarson
Copy link
Contributor

@aleclarson aleclarson commented Aug 20, 2019

This rounds the animated value to the nearest step.

For example, passing 10 as the step would round to the nearest multiple of 10.

Likewise, passing 0.5 would round to the nearest multiple of 0.5.

The most common use case will probably be rounding based on pixel density.

This is a bug in TypeScript that manifests in @types/react.

This commit is temporary pain relief for #613. The "ref" prop is no longer typed.

More info here: microsoft/TypeScript#29949
This rounds the animated value to the nearest step.

For example, passing `10` as the step would round to the nearest multiple of 10.

Likewise, passing `0.5` would round to the nearest multiple of 0.5.
@aleclarson
Copy link
Contributor Author

Merged into #808

@aleclarson aleclarson closed this Sep 19, 2019
@aleclarson aleclarson deleted the step-prop branch February 23, 2021 23:35
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